Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
garbcoll - Release memory space to the system
&pagelevel(4)&pagelevel
Definition | #include <stdlib.h> void garbcoll(void); The calloc , malloc , realloc and free functions form the C-specific memory management package. This package essentially consists of an internal free memory management facility. The memory released with free is not returned to the system (RELM-SVC) but is taken by the free memory management facility. The memory request functions (calloc , malloc , realloc ) attempt to supply the memory firstly via the free memory management and only as a second option by the operating system (REQM-SVC). If memory is no longer available even from the system, the memory administered by the free memory management facility is returned (pagewise if possible) to the system (garbage collection). This garbage collection mechanism is effective in the address space ≤ 2 GB and can also be called explicitly with the garbcoll function. |
Note | The garbcoll function returns to the system all the memory areas which were previously released with free and which can be combined to form free pages. |
See also | calloc, malloc, realloc, free |