[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:03:53 -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 #3, bug #50838 (project lwip):
Seems like this fix broke stats counting. STATS_INC_USED is defined as thus:
#define STATS_INC_USED(x, y) do { lwip_stats.x.used += y; \
if (lwip_stats.x.max < lwip_stats.x.used) { \
lwip_stats.x.max = lwip_stats.x.used; \
} \
} while(0)
The commit replaces this with:
#define MEM_STATS_INC_USED(x, y) SYS_ARCH_INC(lwip_stats.mem.x, y)
Which is clearly not the same thing, and explains why my memory usage is shown
as zero.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50838>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/