Modules§
Constants§
- MI_
SMALL_ SIZE_ MAX - The maximum number of bytes which may be used as an argument to a function
in the
_small
family (mi_malloc_small
,mi_zalloc_small
, etc). - _mi_
option_ last - Last option.
- mi_
option_ eager_ commit_ delay - Option (experimental) the first N segments per thread are not eagerly committed (=1).
- mi_
option_ large_ os_ pages - The following options are experimental
- mi_
option_ limit_ os_ alloc - Option (experimental) If set to 1, do not use OS memory for allocation (but only pre-reserved arenas)
- mi_
option_ max_ errors - Option (experimental)
- mi_
option_ max_ segment_ reclaim - Option (experimental)
- mi_
option_ max_ warnings - Option (experimental)
- mi_
option_ os_ tag - Option (experimental) OS tag to assign to mimalloc’d memory
- mi_
option_ reserve_ huge_ os_ pages - Option (experimental) The number of huge OS pages (1GiB in size) to reserve at the start of the program.
- mi_
option_ reserve_ huge_ os_ pages_ at - Option (experimental) Reserve huge OS pages at node N.
- mi_
option_ reserve_ os_ memory - Option (experimental) Reserve specified amount of OS memory at startup, e.g. “1g” or “512m”.
- mi_
option_ show_ errors - Print error messages to
stderr
. - mi_
option_ show_ stats - Print statistics to
stderr
when the program is done. - mi_
option_ use_ numa_ nodes - Option (experimental) Pretend there are at most N NUMA nodes; Use 0 to use the actual detected NUMA nodes at runtime.
- mi_
option_ verbose - Print verbose messages to
stderr
.
Type Aliases§
- mi_
block_ visit_ fun - Visitor function passed to
mi_heap_visit_blocks
- mi_
deferred_ free_ fun - Type of deferred free functions. Must be thread-safe.
- mi_
error_ fun - Type of error callback functions. Must be thread-safe.
- mi_
option_ t - Runtime options. All options are false by default.
- mi_
output_ fun - An output callback. Must be thread-safe.