From 9fa3a2c234077942bceb180ff4d1f0cd01ad9bd6 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 10 Jun 2025 14:03:21 +0100 Subject: [PATCH 1/2] [do not merge] Test suite with mimalloc I noticed that mimalloc hangs when building some projects, so want to try and see if any Emscripten tests can help narrow it down by changing the default. --- src/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.js b/src/settings.js index 0632832e7558d..f0732a6dbda5d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -129,7 +129,7 @@ var STACK_SIZE = 64*1024; // the extra security checks it does (such as noticing metadata corruption in // its internal data structures, which emmalloc does not do). // [link] -var MALLOC = "dlmalloc"; +var MALLOC = "mimalloc"; // If 1, then when malloc would fail we abort(). This is nonstandard behavior, // but makes sense for the web since we have a fixed amount of memory that From 74eae18e43d3a80f2fe6f4b2f1ef1ff0dc57846f Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 10 Jun 2025 17:44:56 +0100 Subject: [PATCH 2/2] bump --- src/settings.js | 2 +- test/common.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.js b/src/settings.js index f0732a6dbda5d..35ff967e0a7d1 100644 --- a/src/settings.js +++ b/src/settings.js @@ -164,7 +164,7 @@ var ABORTING_MALLOC = true; // for imported memories (e.g. when dynamic linking is used). // // [link] -var INITIAL_HEAP = 16777216; +var INITIAL_HEAP = 128 << 20; // The initial amount of memory to use. Using more memory than this will // cause us to expand the heap, which can be costly with typed arrays: diff --git a/test/common.py b/test/common.py index a6b37f77f07ea..82a824a2fe966 100644 --- a/test/common.py +++ b/test/common.py @@ -1236,7 +1236,7 @@ def setUp(self): if node_version[0] < feature_matrix.min_browser_versions[feature_matrix.Feature.JS_BIGINT_INTEGRATION]['node'] / 10000: self.emcc_args.append('-sWASM_BIGINT=0') - self.v8_args = ['--wasm-staging'] + self.v8_args = ['--wasm-staging', '--enable-os-system'] self.env = {} self.temp_files_before_run = [] self.required_engine = None