Revise the docs of the slab and remove an unused type

This commit is contained in:
Zhang Junyang
2025-03-14 20:57:06 +08:00
committed by Tate, Hongliang Tian
parent 3d21258baf
commit 288942b970
7 changed files with 37 additions and 38 deletions

View File

@ -31,7 +31,7 @@ static FRAME_ALLOCATOR: FrameAllocator = FrameAllocator;
#[ostd::global_heap_allocator]
static HEAP_ALLOCATOR: HeapAllocator = HeapAllocator;
#[ostd::global_heap_allocator_slot_type_map]
#[ostd::global_heap_allocator_slot_map]
const fn slot_type_from_layout(layout: core::alloc::Layout) -> Option<ostd::mm::heap::SlotInfo> {
type_from_layout(layout)
}