Expand description
ArceOS global memory allocator.
It provides GlobalAllocator
, which implements the trait
core::alloc::GlobalAlloc
. A static global variable of type
GlobalAllocator
is defined with the #[global_allocator]
attribute, to
be registered as the standard library’s default allocator.
Structs§
- Global
Allocator - The global allocator used by ArceOS.
- Global
Page - A RAII wrapper of contiguous 4K-sized pages.
Functions§
- global_
add_ memory - Add the given memory region to the global allocator.
- global_
allocator - Returns the reference to the global allocator.
- global_
init - Initializes the global allocator with the given memory region.
Type Aliases§
- Default
Byte Allocator - The default byte allocator.