lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #50838] mem.c needs SYS_ARCH_PROTECTION around MEM_STA


From: Daniel Elstner
Subject: [lwip-devel] [bug #50838] mem.c needs SYS_ARCH_PROTECTION around MEM_STATS
Date: Fri, 21 Apr 2017 16:49:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/57.0.2987.98 Chrome/57.0.2987.98 Safari/537.36

Follow-up Comment #4, bug #50838 (project lwip):

I just had a look at the code in mem.c which uses these macros and I noticed
that these increments/decrements are already protected by a mutex -- at least
if MEM_LIBC_MALLOC is 0.

So I think it might be preferable to have the extra locks only where needed,
and change the MEM_STATS macros back to unlocked.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?50838>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]