[−][src]Crate libmimalloc_sys
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_max_errors | 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_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_calloc⚠ | Allocate |
mi_calloc_aligned⚠ | Allocate |
mi_calloc_aligned_at⚠ | Allocate |
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_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_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_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_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_register_deferred_free⚠ | Register a deferred free function. |
mi_register_error⚠ | Register an error callback function. |
mi_register_output⚠ | Register an output function. |
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. |