INtime SDK Help
heap_compact
INtime SDK v6 > About INtime > Other system libraries > Heaps and memory pools > C/C++ Runtime heap > heap_compact

Returns memory pages released (via free) and no longer in use.

int heap_compact(void);

Parameters

None.

Remarks

As pages are returned, the total physical and virtual memory burden for the process is reduced and may be observed with INtex.

Return Values

0 (zero)
Success.
Less than 0 (zero)
Failure. The function sets errno to one of these values:
EEXIST The heap is deleted.
EINVAL The heap is not a valid MPOOL.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/heap.h heap.h clib.lib
   
See Also