Malloc bindings
Allows you to set/query the behaviour of malloc. The functions in this module may not be implemented on your platform.
|
#
arena
| : int | ; | (* | non-mmapped space allocated from system | *) |
|
#
ordblks
| : int | ; | (* | number of free chunks | *) |
|
#
smblks
| : int | ; | (* | number of fastbin blocks | *) |
|
#
hblks
| : int | ; | (* | number of mmapped regions | *) |
|
#
hblkhd
| : int | ; | (* | space in mmapped regions | *) |
|
#
usmblks
| : int | ; | (* | maximum total allocated space | *) |
|
#
fsmblks
| : int | ; | (* | space available in freed fastbin blocks | *) |
|
#
uordblks
| : int | ; | (* | total allocated space | *) |
|
#
fordblks
| : int | ; | (* | total free space | *) |
|
#
keepcost
| : int | ; | (* | top-most, releasable (via malloc_trim) space | *) |
|
#
| TRIM_THRESHOLD
| (* | Maximum amount of unused top-most memory to keep before releasing via malloc_trim in free(). | *) |
|
#
| TOP_PAD
| (* | Amount of extra `padding' space to allocate or retain whenever sbrk is called. | *) |
|
#
| MMAP_THRESHOLD
| (* | 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. | *) |
|
#
| MMAP_MAX
| (* | Maximum number of requests to simultaneously service using mmap. | *) |
|
#
| CHECK_ACTION
|
Malloc options
mallinfo ()
mallopt opt n sets malloc configuration option opt to n.
malloc_trim n release all but n bytes of freed top-most memory
back to the system.
Failure if unsuccessful.
malloc_stats () prints brief summary statistics on stderr.