MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / handle_alloc_error

Function handle_alloc_error

os/src/mm/heap_allocator.rs:8–10  ·  view source on GitHub ↗
(layout: core::alloc::Layout)

Source from the content-addressed store, hash-verified

6
7#[alloc_error_handler]
8pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {
9 panic!("Heap allocation error, layout = {:?}", layout);
10}
11
12static mut HEAP_SPACE: [u8; KERNEL_HEAP_SIZE] = [0; KERNEL_HEAP_SIZE];
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected