pub struct GlobalAllocator { /* private fields */ }
Expand description
Global allocator is an storage for:
- Immix blocks used for small allocations
- Large object space used for large allocations
- bitmaps that are used for conservative marking and marking individual block lines
Implementations§
Source§impl GlobalAllocator
impl GlobalAllocator
pub fn new(config: &Config) -> GlobalAllocator
pub fn large_allocation(&mut self, size: usize) -> (*mut u8, usize)
pub fn prepare_for_marking(&mut self, eden: bool)
pub fn begin_marking(&mut self) -> BlockList
pub fn acquire_block(&self, heap: *const Heap) -> *mut Block
Auto Trait Implementations§
impl Freeze for GlobalAllocator
impl !RefUnwindSafe for GlobalAllocator
impl !Send for GlobalAllocator
impl !Sync for GlobalAllocator
impl Unpin for GlobalAllocator
impl !UnwindSafe for GlobalAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more