Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs55 pub(crate) obj_per_page: usize, field
72 let obj_per_page = cmin((P::SIZE - OBJECT_PAGE_METADATA_OVERHEAD) / $size, 8 * 64); localVariable
76 obj_per_page,
81 free_limit: 2 * obj_per_page,
134 if slab_page.is_empty(self.obj_per_page) { in check_page_assignments()
252 self.free_obj_count += self.obj_per_page; in refill()
343 let is_empty_after_dealloc = slab_page.is_empty(self.obj_per_page); in deallocate()
H A Dzone.rs146 scallocator.empty_slabs.elements * (scallocator.obj_per_page * scallocator.size()); in free_space()