Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs57 pub(crate) empty_slabs: PageList<'a, P>, field
77 empty_slabs: PageList::new(),
118 self.empty_slabs.insert_front(new_head); in insert_empty()
148 !self.empty_slabs.contains(page_ptr), in move_to_empty()
154 self.empty_slabs.insert_front(page); in move_to_empty()
157 debug_assert!(self.empty_slabs.contains(page_ptr)); in move_to_empty()
230 if let Some(page) = self.empty_slabs.pop() { in try_reclaim_pages()
277 if ptr.is_null() && self.empty_slabs.head.is_some() { in allocate()
279 let empty_page = self.empty_slabs.pop().expect("We checked head.is_some()"); in allocate()
280 debug_assert!(!self.empty_slabs.contains(empty_page)); in allocate()
[all …]
H A Dzone.rs146 scallocator.empty_slabs.elements * (scallocator.obj_per_page * scallocator.size()); in free_space()