Malloc bindings
Allows you to set/query the behaviour of malloc. The functions in this module may not be implemented on your platform.
: int | ; | (* | non-mmapped space allocated from system | *) | |
: int | ; | (* | number of free chunks | *) | |
: int | ; | (* | number of fastbin blocks | *) | |
: int | ; | (* | number of mmapped regions | *) | |
: int | ; | (* | space in mmapped regions | *) | |
: int | ; | (* | maximum total allocated space | *) | |
: int | ; | (* | space available in freed fastbin blocks | *) | |
: int | ; | (* | total allocated space | *) | |
: int | ; | (* | total free space | *) | |
: int | ; | (* | top-most, releasable (via malloc_trim) space | *) |
(* | Maximum amount of unused top-most memory to keep before releasing via malloc_trim in free(). | *) | |
(* | Amount of extra `padding' space to allocate or retain whenever sbrk is called. | *) | |
(* | Request size threshold for using mmap() to service a request. Requests of at least this size that cannot be allocated using already-existing space will be serviced via mmap. | *) | |
(* | Maximum number of requests to simultaneously service using mmap. | *) | |
(* | ??? | *) |
Malloc options
malloc_trim n
release all but n
bytes of freed top-most memory
back to the system.
malloc_stats ()
prints brief summary statistics on stderr.