Crate cesium_libmimalloc_sys

Source

Modules§

allocator
heap
options

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.