Crate libmimalloc_sys[−][src]
Structs
| mi_heap_area_t | An area of heap space contains blocks of a single size. |
Enums
| mi_heap_t | First-class heaps that can be destroyed in one go. |
Constants
| MI_SMALL_SIZE_MAX | The maximum number of bytes which may be used as an argument to a function
in the |
| mi_option_abandoned_page_reset | Experimental |
| mi_option_eager_commit | Option (experimental) specifying eagerly commit segments (4MiB) (enabled by default). |
| mi_option_eager_commit_delay | Experimental |
| mi_option_eager_region_commit | Option (experimental) specifying eagerly commit large (256MiB) memory regions (enabled by default, except on Windows). |
| mi_option_large_os_pages | Option (experimental) to use large OS pages (2MiB in size) if possible. |
| mi_option_limit_os_alloc | TODO: update later |
| mi_option_max_errors | Experimental |
| mi_option_max_warnings | Experimental |
| mi_option_os_tag | Option (experimental) specifying OS tag to assign to mimalloc’d memory. |
| mi_option_page_reset | Option (experimental) to reset page memory after mi_option_reset_delay milliseconds when it becomes free. |
| mi_option_reserve_huge_os_pages | Option (experimental) specifying number of huge OS pages (1GiB in size) to reserve at the start of the program. |
| mi_option_reserve_os_memory | TODO: update later |
| mi_option_reset_decommits | Experimental |
| mi_option_reset_delay | Option (experimental) specifying delay in milli-seconds before resetting a page (100ms by default). |
| mi_option_segment_cache | Option (experimental) specifying number of segments per thread to keep cached. |
| mi_option_segment_reset | Experimental |
| mi_option_show_errors | Option allowing printing error messages to stderr. |
| mi_option_show_stats | Option allowing printing statistics to stderr when the program is done. |
| mi_option_use_numa_nodes | Option (experimental) to pretend there are at most N NUMA nodes. |
| mi_option_verbose | Option allowing printing verbose messages to stderr. |
Functions
| mi_aligned_alloc⚠ | Allocate |
| mi_calloc⚠ | Allocate |
| mi_calloc_aligned⚠ | Allocate |
| mi_calloc_aligned_at⚠ | Allocate |
| mi_cfree⚠ | Checked free: If |
| mi_check_owned⚠ | Check safely if any pointer is part of the default heap of this thread. |
| mi_collect⚠ | Eagerly free memory. |
| mi_expand⚠ | Try to re-allocate memory to |
| mi_free⚠ | Free previously allocated memory. |
| mi_free_aligned⚠ | Alignment-aware deallocation: Like |
| mi_free_size⚠ | Size-aware deallocation: Like |
| mi_free_size_aligned⚠ | Layout-aware deallocation: Like |
| mi_good_size⚠ | Return the used allocation size. |
| mi_heap_calloc⚠ | Equivalent to |
| mi_heap_calloc_aligned⚠ | Equivalent to |
| mi_heap_calloc_aligned_at⚠ | Equivalent to |
| mi_heap_check_owned⚠ | Check safely if any pointer is part of a heap. |
| mi_heap_collect⚠ | Release outstanding resources in a specific heap. |
| mi_heap_contains_block⚠ | Does a heap contain a pointer to a previously allocated block? |
| mi_heap_delete⚠ | Delete a previously allocated heap. |
| mi_heap_destroy⚠ | Destroy a heap, freeing all its still allocated blocks. |
| mi_heap_get_backing⚠ | Get the backing heap. |
| mi_heap_get_default⚠ | Get the default heap that is used for |
| mi_heap_malloc⚠ | Equivalent to |
| mi_heap_malloc_aligned⚠ | Equivalent to |
| mi_heap_malloc_aligned_at⚠ | Equivalent to |
| mi_heap_malloc_small⚠ | Equivalent to |
| mi_heap_mallocn⚠ | Equivalent to |
| mi_heap_new⚠ | Create a new heap that can be used for allocation. |
| mi_heap_realloc⚠ | Equivalent to |
| mi_heap_realloc_aligned⚠ | Equivalent to |
| mi_heap_realloc_aligned_at⚠ | Equivalent to |
| mi_heap_reallocf⚠ | Equivalent to |
| mi_heap_reallocn⚠ | Equivalent to |
| mi_heap_realpath⚠ | Equivalent to |
| mi_heap_recalloc⚠ | Equivalent to |
| mi_heap_recalloc_aligned⚠ | Equivalent to |
| mi_heap_recalloc_aligned_at⚠ | Equivalent to |
| mi_heap_rezalloc⚠ | Equivalent to |
| mi_heap_rezalloc_aligned⚠ | Equivalent to |
| mi_heap_rezalloc_aligned_at⚠ | Equivalent to |
| mi_heap_set_default⚠ | Set the default heap to use for |
| mi_heap_strdup⚠ | Equivalent to |
| mi_heap_strndup⚠ | Equivalent to |
| mi_heap_visit_blocks⚠ | Visit all areas and blocks in |
| mi_heap_zalloc⚠ | Equivalent to |
| mi_heap_zalloc_aligned⚠ | Equivalent to |
| mi_heap_zalloc_aligned_at⚠ | Equivalent to |
| mi_is_in_heap_region⚠ | Returns true if this is a pointer into a memory region that has been reserved by the mimalloc heap. |
| mi_malloc⚠ | Allocate |
| mi_malloc_aligned⚠ | Allocate |
| mi_malloc_aligned_at⚠ | Allocate |
| mi_malloc_small⚠ | Allocate an object of no more than |
| mi_mallocn⚠ | Allocate |
| mi_option_get⚠ | Returns the value of the provided option. |
| mi_option_is_enabled⚠ | Returns true if the provided option is enabled. |
| mi_option_set⚠ | Set the option to the given value. |
| mi_option_set_default⚠ | If the given option has not yet been initialized with |
| mi_option_set_enabled⚠ | Enable or disable the given option. |
| mi_option_set_enabled_default⚠ | If the given option has not yet been initialized with |
| mi_posix_memalign⚠ | Allocate |
| mi_process_info⚠ | Return process information (time and memory usage). All parameters are optional (nullable) out-params: |
| mi_process_init⚠ | Initialize the process. |
| mi_realloc⚠ | Re-allocate memory to |
| mi_realloc_aligned⚠ | Re-allocate memory to |
| mi_realloc_aligned_at⚠ | Re-allocate memory to |
| mi_reallocf⚠ | Re-allocate memory to |
| mi_reallocn⚠ | Re-allocate memory to |
| mi_realpath⚠ | Resolve a file path name, producing a |
| mi_recalloc⚠ | Zero initialized re-allocation, following |
| mi_recalloc_aligned⚠ | Aligned version of |
| mi_recalloc_aligned_at⚠ | Offset-aligned version of |
| mi_register_deferred_free⚠ | Register a deferred free function. |
| mi_register_error⚠ | Register an error callback function. |
| mi_register_output⚠ | Register an output function. |
| mi_rezalloc⚠ | Zero initialized re-allocation. |
| mi_rezalloc_aligned⚠ | Aligned version of |
| mi_rezalloc_aligned_at⚠ | Offset-aligned version of |
| mi_stats_merge⚠ | Merge thread local statistics with the main statistics and reset. |
| mi_stats_print⚠ | Print the main statistics. |
| mi_stats_print_out⚠ | Print the main statistics. |
| mi_stats_reset⚠ | Reset statistics. |
| mi_strdup⚠ | Allocate and duplicate a nul-terminated C string. |
| mi_strndup⚠ | Allocate and duplicate a nul-terminated C string, up to |
| mi_thread_done⚠ | Uninitialize mimalloc on a thread. |
| mi_thread_init⚠ | Initialize mimalloc on a thread. |
| mi_thread_stats_print_out⚠ | Print out heap statistics for this thread. |
| mi_usable_size⚠ | Return the available bytes in a memory block. |
| mi_version⚠ | Return the mimalloc version number. |
| mi_zalloc⚠ | Allocate zero-initialized |
| mi_zalloc_aligned⚠ | Allocate |
| mi_zalloc_aligned_at⚠ | Allocate |
| mi_zalloc_small⚠ | Allocate an zero-initialized object of no more than
|
Type Definitions
| mi_block_visit_fun | Visitor function passed to |
| 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. |