Structsยง
- List of blocks owned by the allocator
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 - Largest object size allowed with our mimalloc implementation, in bytes
- Largest object size in words
Functionsยง
- 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 - Create an empty set of block lists of different size classes (bins)
- Returns how many pages the block lists uses.
Type Aliasesยง
- All the bins for the block lists