enable mimalloc simd (#21644)

### What does this PR do?

### How did you verify your code works?
This commit is contained in:
Jarred Sumner
2025-08-06 06:38:34 -07:00
committed by GitHub
parent 4d301cc3c4
commit 455f3a65b9
3 changed files with 26 additions and 0 deletions

View File

@@ -64,6 +64,12 @@ if(ENABLE_VALGRIND)
list(APPEND MIMALLOC_CMAKE_ARGS -DMI_VALGRIND=ON)
endif()
# Enable SIMD optimizations when not building for baseline (older CPUs)
if(NOT ENABLE_BASELINE)
list(APPEND MIMALLOC_CMAKE_ARGS -DMI_OPT_ARCH=ON)
list(APPEND MIMALLOC_CMAKE_ARGS -DMI_OPT_SIMD=ON)
endif()
if(DEBUG)
if (ENABLE_ASAN)
set(MIMALLOC_LIBRARY mimalloc-asan-debug)

View File

@@ -82,6 +82,10 @@ function getNodeParallelTestTimeout(testPath) {
return 10_000;
}
process.on("SIGTRAP", () => {
console.warn("Test runner received SIGTRAP. Doing nothing.");
});
const { values: options, positionals: filters } = parseArgs({
allowPositionals: true,
options: {

View File

@@ -270,22 +270,38 @@ test/napi/node-napi-tests/test/js-native-api/test_conversions/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_dataview/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_date/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_error/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_exception/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_finalizer/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_function/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_general/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_handle_scope/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_instance_data/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_new_target/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_number/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_object/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_promise/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_properties/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_reference/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_reference_double_free/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_string/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_symbol/do.test.ts
test/napi/node-napi-tests/test/js-native-api/test_typedarray/do.test.ts
test/napi/node-napi-tests/test/node-api/1_hello_world/do.test.ts
test/napi/node-napi-tests/test/node-api/test_async/do.test.ts
test/napi/node-napi-tests/test/node-api/test_buffer/do.test.ts
test/napi/node-napi-tests/test/node-api/test_callback_scope/do.test.ts
test/napi/node-napi-tests/test/node-api/test_cleanup_hook/do.test.ts
test/napi/node-napi-tests/test/node-api/test_exception/do.test.ts
test/napi/node-napi-tests/test/node-api/test_fatal/do.test.ts
test/napi/node-napi-tests/test/node-api/test_fatal_exception/do.test.ts
test/napi/node-napi-tests/test/node-api/test_general/do.test.ts
test/napi/node-napi-tests/test/node-api/test_init_order/do.test.ts
test/napi/node-napi-tests/test/node-api/test_instance_data/do.test.ts
test/napi/node-napi-tests/test/node-api/test_make_callback/do.test.ts
test/napi/node-napi-tests/test/node-api/test_make_callback_recurse/do.test.ts
test/napi/node-napi-tests/test/node-api/test_threadsafe_function/do.test.ts
test/napi/node-napi-tests/test/node-api/test_worker_terminate_finalization/do.test.ts
test/napi/node-napi-tests/test/node-api/test_reference_by_node_api_version/do.test.ts
# normalizeCryptoAlgorithmParameters
test/js/node/test/parallel/test-webcrypto-derivekey.js