Home
last modified time | relevance | path

Searched refs:new_layout (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs270 let new_layout = unsafe { Layout::from_size_align_unchecked(self.size, layout.align()) }; in allocate() localVariable
271 assert!(new_layout.size() >= layout.size()); in allocate()
276 let ptr = self.try_allocate_from_pagelist(new_layout); in allocate()
338 let new_layout = unsafe { Layout::from_size_align_unchecked(self.size, layout.align()) }; in deallocate() localVariable
340 let ret = slab_page.deallocate(ptr, new_layout); in deallocate()