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
Running v3.1.5 debug test binaries with MI_SECURE in arm64-osx vcpkg triplet fails in
mimalloc/src/os.c
Line 55 in dfa50c3
I realized that
gsizeis a runtime property obtained viasysconf(_SC_PAGESIZE), and I could verify that its value is 16384 in the affected Apple silicon builds, and that8192 <= MI_ARENA_SLICE_SIZE/8 < 16384.Is the assertion too strict, or does the result
MI_ARENA_SLICE_SIZE/8need 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