We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac676d5 commit fb5b18fCopy full SHA for fb5b18f
tools/system_libs.py
@@ -1799,6 +1799,10 @@ class libmimalloc(MTLibrary):
1799
# build emmalloc as only a system allocator, without exporting itself onto
1800
# malloc/free in the global scope
1801
'-DEMMALLOC_NO_STD_EXPORTS',
1802
+ # halve the page size to 32KiB on wasm64 and to 16KiB on wasm32
1803
+ # https://github.com/microsoft/mimalloc/issues/647#issuecomment-1324109021
1804
+ # https://github.com/emscripten-core/emscripten/issues/20645#issuecomment-1962964755
1805
+ '-DMI_SEGMENT_SLICE_SHIFT=(12 + MI_INTPTR_SHIFT)',
1806
# build mimalloc with an override of malloc/free
1807
'-DMI_MALLOC_OVERRIDE',
1808
# TODO: add build modes that include debug checks 1,2,3
0 commit comments