Skip to content

Add out-of-memory language item #1

Closed
@jlamb-at-polysync

Description

@jlamb-at-polysync

See this issue: rust-lang/rust#50144

Add something like this for oom() in sel4-entry:

#[lang = "oom"]
pub extern fn oom() -> ! {
    use core::fmt::Write;
    let _ = write!(
        sel4_sys::DebugOutHandle,
        "----- aborting from out-of-memory -----\n"
    );
    unsafe {
        core::intrinsics::abort();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions