mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Revise the docs of the slab and remove an unused type
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
3d21258baf
commit
288942b970
@ -85,7 +85,7 @@ impl CommonSizeClass {
|
||||
|
||||
/// Get the type of the slot from the layout.
|
||||
///
|
||||
/// It should be used to define [`ostd::global_heap_allocator_slot_type_map`].
|
||||
/// It should be used to define [`ostd::global_heap_allocator_slot_map`].
|
||||
pub const fn type_from_layout(layout: Layout) -> Option<SlotInfo> {
|
||||
if let Some(class) = CommonSizeClass::from_layout(layout) {
|
||||
return Some(SlotInfo::SlabSlot(class as usize));
|
||||
|
Reference in New Issue
Block a user