[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Disturbing status outputs
From: |
kanprin |
Subject: |
Re: [lwip-users] Disturbing status outputs |
Date: |
Sun, 17 Jan 2010 16:14:48 -0800 (PST) |
Simon Goldschmidt wrote:
>
> Bernhard \'Gustl\' Bauer wrote:
>> I just checked the status of my LWIP 1.3.0 and it says:
>>
>> MEM_HEAP
>> avail: 8192
>> used: 59408
>> max: 63492
>> err: 0
>>
>>
>> How can more heap memory be used than is available?
>
> Since those values are in the range of MAX_U16, I guess the calculation is
> wrong somewhere in that a negative value for 'used' is calculated... I
> think I remember having that bug some time, but I don't know if it was
> fixed before 1.3.0 or after that.
>
> Simon
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5
> -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
in mem.c line 414:MEM_STATS_DEC_USED(used, (size - newsize));
the decrease shoud be done for the first two cases,but not for the third
one.
so MEM_STATS_DEC_USED(used, (size - newsize)); shoud be pleased at line 441
and 462
--
View this message in context:
http://old.nabble.com/Disturbing-status-outputs-tp27161129p27204485.html
Sent from the lwip-users mailing list archive at Nabble.com.