Skip to content

Large const alloc does not fail gracefully on AIX #137966

Closed
@mustartt

Description

@mustartt

The following test cases either hangs or tries to honor the allocation and get sigkilled on AIX.

tests/ui/consts/large_const_alloc.rs

const FOO: () = {
    // 128 TiB, unlikely anyone has that much RAM
    let x = [0_u8; (1 << 47) - 1];
    //~^ ERROR evaluation of constant value failed
};

tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs

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