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

Function handle_alloc_error

user/src/lib.rs:36–38  ·  view source on GitHub ↗
(layout: core::alloc::Layout)

Source from the content-addressed store, hash-verified

34
35#[alloc_error_handler]
36pub fn handle_alloc_error(layout: core::alloc::Layout) -> ! {
37 panic!("Heap allocation error, layout = {:?}", layout);
38}
39
40#[no_mangle]
41#[link_section = ".text.entry"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected