[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
[lwip-devel] [bug #50838] mem.c needs SYS_ARCH_PROTECTION around MEM_STATS
Fri, 21 Apr 2017 16:49:47 -0400 (EDT)
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:
Message sent via/by Savannah