[En-Nut-Discussion] NutDumpHeap differs counted and reported bytes free

Harald Kipp harald.kipp at egnite.de
Thu Aug 20 09:43:45 CEST 2009


Hi Nicolas,

Nicolas Heine wrote:

> in Version 4.8.3, NutDumpHeap() always reports, that the free heap bytes 
> counted and the free heap bytes reported differ by NUT_HEAP_OVERHEAD per 
> node.
> 
> Is that just a missing  subtraction of NUT_HEAP_OVERHEAD in the 
> NutDumpHeap() function or what is the idea behind that?

It is a missing subtraction. Same is true for the newer function
NutHeapDump(). :-(

Anyway, it is recommended to use the new functions NutHeapDump(),
NutHeapCheck() and NutHeapRegionAvailable(). They provide additional
information if "Heap Debugging" is enabled in the Configurator.

Harald



More information about the En-Nut-Discussion mailing list