From 09fc0c64b56812af0847b4db67ec689af0d134d9 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 14 Sep 2026 10:42:09 +0800 Subject: [PATCH] chore(deps): update mimalloc to v2.5.2 and mimalloc3 to v3.5.2 + init fix v2: v2.5.1 -> v2.5.2 (official tag). v3: napi-rs fork 1e5d14ca (v3.5.1 + PR microsoft/mimalloc#1393) -> napi-rs fork afa6c90d (v3.5.2 + a one-line fix). Upstream took #1393 in a different form (439dc27b) and it is in v3.5.2, but that commit runs `mi_process_setup_auto_thread_done` before `_mi_process_is_initialized = true`. With `MI_TLS_RECURSE_GUARD` (what build.rs uses on macOS for v3) `_mi_theap_default()` still returns the empty theap there, so v3.5.2 aborts at process init in debug builds and skips the thread-done association in release builds. afa6c90d sets the flag first. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016srh5svTkqfW21zGcU6ht9 --- .gitmodules | 2 +- libmimalloc-sys/c_src/mimalloc | 2 +- libmimalloc-sys/c_src/mimalloc3 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index c1b5096..9c3c04d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,4 +4,4 @@ [submodule "libmimalloc-sys/c_src/mimalloc3"] path = libmimalloc-sys/c_src/mimalloc3 url = https://github.com/napi-rs/mimalloc.git - branch = fix/first-thread-done + branch = fix/process-init-flag-before-thread-done diff --git a/libmimalloc-sys/c_src/mimalloc b/libmimalloc-sys/c_src/mimalloc index 1e884db..2406cc5 160000 --- a/libmimalloc-sys/c_src/mimalloc +++ b/libmimalloc-sys/c_src/mimalloc @@ -1 +1 @@ -Subproject commit 1e884db2e318de18cae03a7a681771716f7f167b +Subproject commit 2406cc5f3ab6d6e54fe560cdd66fa46eee775312 diff --git a/libmimalloc-sys/c_src/mimalloc3 b/libmimalloc-sys/c_src/mimalloc3 index 1e5d14c..afa6c90 160000 --- a/libmimalloc-sys/c_src/mimalloc3 +++ b/libmimalloc-sys/c_src/mimalloc3 @@ -1 +1 @@ -Subproject commit 1e5d14ca11b27fb352820405d2ed422c7b56b468 +Subproject commit afa6c90df2d8f0f78f12b42a598a4e93c10a51e6