Skip to content

MI_SECURE vs. 16KiB page size: assertion failed #1166

@dg0yt

Description

@dg0yt

Running v3.1.5 debug test binaries with MI_SECURE in arm64-osx vcpkg triplet fails in

mi_assert(gsize <= (MI_ARENA_SLICE_SIZE/8));

I realized that gsize is a runtime property obtained via sysconf(_SC_PAGESIZE), and I could verify that its value is 16384 in the affected Apple silicon builds, and that 8192 <= MI_ARENA_SLICE_SIZE/8 < 16384.

Is the assertion too strict, or does the result MI_ARENA_SLICE_SIZE/8 need to change?

I guess that modern Android environments could be affected as well, https://developer.android.com/guide/practices/page-sizes?hl=en.

Background: microsoft/vcpkg#44699

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