This fixes rust-jemalloc-sys build on darwin. Linux builds pass only when overcommit is enabled in kernel, so it's better to disable it for both platforms. See: https://github.com/jemalloc/jemalloc/pull/2954 Assisted-by: Codex gpt-5.5 xhigh
25 lines
676 B
Diff
25 lines
676 B
Diff
diff --git a/test/integration/extent.sh b/test/integration/extent.sh
|
|
index 39fb0a73..ee9f3ed4 100644
|
|
--- a/test/integration/extent.sh
|
|
+++ b/test/integration/extent.sh
|
|
@@ -1,5 +1,19 @@
|
|
#!/bin/sh
|
|
|
|
+# With active profiling, xallocx may decline to grow non-page-aligned
|
|
+# allocations. On platforms with real decommit/commit, this can make this
|
|
+# test observe a successful decommit without the matching commit.
|
|
+case ",${MALLOC_CONF_ALL}," in
|
|
+ *,prof:true,*)
|
|
+ case ",${MALLOC_CONF_ALL}," in
|
|
+ *,prof_active:false,*)
|
|
+ ;;
|
|
+ *)
|
|
+ return 1
|
|
+ ;;
|
|
+ esac
|
|
+esac
|
|
+
|
|
if [ "x${enable_fill}" = "x1" ] ; then
|
|
export MALLOC_CONF="junk:false"
|
|
fi
|