pub struct LargeObjectSpace { /* private fields */ }
Expand description
This space contains objects which are larger than the size limits of other spaces. Each object gets its own malloc’d region of memory. Large objects are never moved by the garbage collector.
Implementations§
Source§impl LargeObjectSpace
impl LargeObjectSpace
pub fn begin_marking(&mut self, full: bool)
pub fn contains(&self, pointer: *const u8) -> *mut HeapObjectHeader
pub fn prepare_for_allocation(&mut self, eden: bool)
pub fn prepare_for_marking(&mut self, eden: bool)
Sourcepub fn prepare_for_conservative_scan(&mut self)
pub fn prepare_for_conservative_scan(&mut self)
Sort allocations before consrvative scan.
pub fn sweep(&mut self)
pub fn allocate(&mut self, size: usize) -> *mut HeapObjectHeader
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LargeObjectSpace
impl RefUnwindSafe for LargeObjectSpace
impl !Send for LargeObjectSpace
impl !Sync for LargeObjectSpace
impl Unpin for LargeObjectSpace
impl UnwindSafe for LargeObjectSpace
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