diff --git a/scripts/bench-json-rust.sh b/scripts/bench-json-rust.sh index 8f8c671fec21..ce30188e8974 100755 --- a/scripts/bench-json-rust.sh +++ b/scripts/bench-json-rust.sh @@ -34,7 +34,7 @@ build() { if [ ! -f "$out" ] || [ "${*: -1}" -nt "$out" ]; then "$@" -o "$out"; fi } MI_FLAGS=(-O2 -fPIC -ftls-model=initial-exec -DNDEBUG -D_GNU_SOURCE -DMI_STATIC_LIB - -DMI_SKIP_COLLECT_ON_EXIT=1 -DMI_DEFAULT_ALLOW_THP=0 -DMI_NO_SET_VMA_NAME=1) + -DMI_SKIP_COLLECT_ON_EXIT=1 -DMI_DEFAULT_ALLOW_THP=0) build "$SUP/mimalloc.o" $CC "${MI_FLAGS[@]}" -Ivendor/mimalloc/include -c vendor/mimalloc/src/static.c build "$SUP/simdutf.o" $CXX -O3 -fPIC -std=c++20 -I"$SUP" -c "$SUP/simdutf.cpp" build "$SUP/simdutf_shim.o" $CXX -O3 -fPIC -std=c++20 -I"$SUP" -c src/parsers/benches/support/simdutf_shim.cpp diff --git a/scripts/build/deps/mimalloc.ts b/scripts/build/deps/mimalloc.ts index 01380348251c..bfc49b771afc 100644 --- a/scripts/build/deps/mimalloc.ts +++ b/scripts/build/deps/mimalloc.ts @@ -61,15 +61,6 @@ export const mimalloc: Dependency = { // memory cost isn't worth it. The cmake option only applies on Linux. if (cfg.linux) defines.MI_DEFAULT_ALLOW_THP = 0; - // Skip prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ...) after each mmap. - // It needs CONFIG_ANON_VMA_NAME (5.17+); on kernels without it every - // call returns EINVAL — pure syscall overhead on the startup path. - // Whether the call is even compiled depends on whether the build - // toolchain's defines PR_SET_VMA, which made strace - // output diverge between toolchains. Disable it outright; the VMA - // label is debugging sugar we don't rely on. - if (cfg.linux) defines.MI_NO_SET_VMA_NAME = 1; - if (cfg.abi === "musl") defines.MI_LIBC_MUSL = 1; if (override) defines.MI_MALLOC_OVERRIDE = true;