Module block_list

Module block_list 

Source

Structsยง

BlockList
List of blocks owned by the allocator
BlockListIterator

Constantsยง

MAX_BIN ๐Ÿ”’
The largest valid bin.
MAX_BIN_SIZE ๐Ÿ”’
The object size for the last bin. We should not try allocate objects larger than this with the allocator.
MI_BIN_FULL ๐Ÿ”’
Number of bins in BlockLists. Reserve bin0 as an empty bin.
MI_INTPTR_BITS ๐Ÿ”’
pointer size in bits
MI_INTPTR_SHIFT ๐Ÿ”’
Log2 of pointer size
MI_INTPTR_SIZE ๐Ÿ”’
pointer size in bytes
MI_LARGE_OBJ_SIZE_MAX ๐Ÿ”’
Largest object size allowed with our mimalloc implementation, in bytes
MI_LARGE_OBJ_WSIZE_MAX ๐Ÿ”’
Largest object size in words

Functionsยง

mi_bin
mi_bin_from_size ๐Ÿ”’
mi_wsize_from_size ๐Ÿ”’
Align a byte size to a size in machine words i.e. byte size == wsize*sizeof(void*) adapted from _mi_wsize_from_size in mimalloc
new_empty_block_lists ๐Ÿ”’
Create an empty set of block lists of different size classes (bins)
pages_used_by_blocklists ๐Ÿ”’
Returns how many pages the block lists uses.

Type Aliasesยง

BlockLists
All the bins for the block lists