pub struct Allocator {Show 13 fields
pub s64: SlabAllocator<0x40, 0x1000>,
pub s128: SlabAllocator<0x80, 0x1000>,
s256: SlabAllocator<0x100, 0x1000>,
s512: SlabAllocator<0x200, 0x1000>,
s1024: SlabAllocator<0x400, 0x1000>,
s2048: SlabAllocator<0x800, 0x2000>,
s4096: SlabAllocator<0x1000, 0x4000>,
s8192: SlabAllocator<0x2000, 0x8000>,
s16384: SlabAllocator<0x4000, 0x10000>,
s32768: SlabAllocator<0x8000, 0x20000>,
s65536: SlabAllocator<0x10000, 0x40000>,
s131072: SlabAllocator<0x20000, 0x80000>,
allocator: Palloc,
}Expand description
The array of slab allocators with different sizes.
Fields§
§s64: SlabAllocator<0x40, 0x1000>Slab allocator for Slab64.
s128: SlabAllocator<0x80, 0x1000>Slab allocator for Slab128.
s256: SlabAllocator<0x100, 0x1000>Slab allocator for Slab256.
s512: SlabAllocator<0x200, 0x1000>Slab allocator for Slab512.
s1024: SlabAllocator<0x400, 0x1000>Slab allocator for Slab1024.
s2048: SlabAllocator<0x800, 0x2000>Slab allocator for Slab2048.
s4096: SlabAllocator<0x1000, 0x4000>Slab allocator for Slab4096.
s8192: SlabAllocator<0x2000, 0x8000>Slab allocator for Slab8192.
s16384: SlabAllocator<0x4000, 0x10000>Slab allocator for Slab16384.
s32768: SlabAllocator<0x8000, 0x20000>Slab allocator for Slab32768.
s65536: SlabAllocator<0x10000, 0x40000>Slab allocator for Slab65536.
s131072: SlabAllocator<0x20000, 0x80000>Slab allocator for Slab131072.
allocator: PallocImplementations§
Trait Implementations§
Source§impl GlobalAlloc for Allocator
impl GlobalAlloc for Allocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read more1.28.0§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc, but also ensures that the contents
are set to zero before being returned. Read more