Skip to content

Tests fail on aarch64 with "Cannot allocate memory" #44

@jpalus

Description

@jpalus

Nearly all of criterion tests fail on aarch64 with:

criterion: Could not initialize inheritable arena: Cannot allocate memory

That's because BoxFort assumes minimal address space for 64-bit hosts of 48-bit:

BoxFort/src/arena.c

Lines 56 to 61 in a26074c

#elif BXF_BITS == 64
/* On Linux it seems that you cannot map > 48-bit addresses */
static void *mmap_base = (void *) 0x200000000000;
static void *mmap_max = (void *) 0x7f0000000000;
static intptr_t mmap_off = (intptr_t) 1 << 24;
static intptr_t mmap_off_mask = 0x3fffff;

While on aarch64 it is possible to to have 39-bit address space see https://www.kernel.org/doc/Documentation/arm64/memory.rst

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions