Repository navigation
chore(deps): update mimalloc3 to v3.6.0 - #110
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Brooooooklyn
force-pushed
the
chore/mimalloc-v3.6.0
branch
from
October 24, 2026 08:59
79a96cd to
351a830
Compare
Use the official Microsoft release and remove the obsolete fork branch. Select per-image pthread TLS on macOS to avoid v3.6.0 LOCAL TLS thread teardown assertions while retaining isolation between statically linked addons.
Android NDK ships execinfo.h below API 33 without declaring backtrace. Override the v3.6.0 header-only probe so profiling uses its portable fallback and API 24 builds continue to work.
Brooooooklyn
force-pushed
the
chore/mimalloc-v3.6.0
branch
from
October 24, 2026 09:04
351a830 to
acd6e37
Compare
Brooooooklyn
added a commit
that referenced
this pull request
Oct 24, 2026
The armv7 example fails during CMake's compiler check because Clang cannot find `crtbeginS.o`, `crtendS.o`, or `libgcc` in the napi-cross toolchain. The C compiler target is normalized to `arm-unknown-linux-gnueabihf`, while the bundled GCC installation uses `armv7-unknown-linux-gnueabihf`, which Clang does not discover through its usual aliases. Pass `--gcc-triple=armv7-unknown-linux-gnueabihf` only for this target. Keep Clang and LLD: the bundled GCC 4.8.5 itself lacks the `stdatomic.h` support required by the existing mimalloc sources. The change is four lines in the workflow; source code, dependencies, and submodules are unchanged. ## Validation - Workflow syntax (`actionlint` with optional ShellCheck/Pyflakes disabled), extracted Bash syntax, and `git diff --check` pass. - An offline Linux Clang 19 test using napi-cross 1.0.3 reproduces the missing startup objects/libgcc before the flag and successfully links a C11-atomic ARM hard-float shared library afterward. The local smoke test uses the bundled GNU linker; the complete workflow tests Clang with LLD. - [CI run 40080526715](https://github.com/napi-rs/mimalloc-safe/actions/runs/40080526715) completed successfully for head `78475baf4c40d106701e1d2e72957686cf2a9c5b`: **19 passed, 0 failed, 0 skipped, 0 cancelled**. The armv7 job passes all four v2/v3 debug/release builds; Android also passes. ## Stack `main` → this CI repair → #110 (mimalloc v3.6.0 upgrade). This prerequisite is independent of the upgrade. --- <sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
Merged
Brooooooklyn
pushed a commit
that referenced
this pull request
Oct 24, 2026
## 🤖 New release * `libmimalloc-sys2`: 0.1.63 -> 0.1.64 (✓ API compatible changes) * `mimalloc-safe`: 0.1.67 -> 0.1.68 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> ## `libmimalloc-sys2` <blockquote> ## [0.1.64] - 2026-10-24 ### Features - *(sys)* Add free_use_pagemap feature ([#109](#109)) ### Chore - *(deps)* Update mimalloc3 to v3.6.0 ([#110](#110)) </blockquote> ## `mimalloc-safe` <blockquote> ## [0.1.68] - 2026-10-24 ### Features - *(sys)* Add free_use_pagemap feature ([#109](#109)) ### Bug Fixes - *(ci)* Locate armv7 GCC runtime when using Clang ([#111](#111)) ### Chore - *(deps)* Update mimalloc3 to v3.6.0 ([#110](#110)) - *(deps)* Update emnapi to v2.0.0-beta.2 ([#108](#108)) - *(deps)* Update yarn to v4.18.1 ([#107](#107)) - *(deps)* Update dependency @napi-rs/cli to v3.10.9 ([#103](#103)) - *(deps)* Update dependency @napi-rs/cli to v3.10.9 ([#114](#114)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This was referenced Oct 29, 2026
shulaoda
added a commit
that referenced
this pull request
Oct 29, 2026
Go back to `MI_TLS_MODEL=LOCAL` for v3 on macOS: with `PTHREADS` (#110), `mi_process_done` deletes the pthread key at exit while other threads may still be allocating, which aborts rolldown's CLI on exit: https://github.com/rolldown/rolldown/actions/runs/40803444105/job/123222619759
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the v3 submodule from
afa6c90df2d8f0f78f12b42a598a4e93c10a51e6(v3.5.2 plus the initialization fix) to the official Microsoft v3.6.0 release,b18ab4eef383f655e760881b02eff8af02800879. The release already contains the fork's initialization fix, so restore the Microsoft submodule URL and remove the obsolete fork branch. The v2 submodule remains at v2.5.2.On macOS, select
MI_TLS_MODEL=PTHREADSfor v3. With the previousLOCALTLS configuration, v3.6.0 fails seven upstream native tests during thread teardown at the cached-theap reference-count assertion insrc/heap/init.c. Per-image pthread keys preserve isolation between statically linked addons and make all twelve native tests pass.On Android, override v3.6.0's
execinfo.havailability probe: the NDK ships that header below API 33 without declaringbacktrace. Use mimalloc's portable profiling fallback to preserve support for the example's API 24 target.Validation
On macOS arm64 with Rust 1.99.0, 25 local commands passed:
After the Android CI regression was identified, reproduced it with the local NDK at API 24. The corrected CMake static/shared builds and all four Cargo example cross-builds (v2/v3, debug/release) pass. Rechecked rustfmt, workspace v3 Clippy and v3+extended tests.
Existing limitations
runtime_stable_optiontest assumesshow_errors=0, while its build script enables it. The extended doctest also imports the oldlibmimalloc_syscrate name. Both failures reproduce on unchanged main with the old v3 submodule. These unrelated baseline issues are unchanged.v3is enabled. Its passing commands do not establish full v3 ABI agreement. A separate actual-v3-header audit finds existing option/struct/signature mismatches with both old and new v3 headers; v3.6.0 also renamesguarded_precisetounsafe_guarded_precisewithout changing value 32. Public binding cleanup is outside this update.No package version changes or release actions.
PR stack and CI
Depends on #111, which independently repairs the pre-existing armv7 cross-toolchain discovery failure. This PR contains only the submodule and macOS/Android compatibility changes relative to that prerequisite. Both PRs remain non-draft.
CI run 40080528221 completed successfully for head
acd6e379df0b98b0f90f8487886badf6a593cb87: 19 passed, 0 failed, 0 skipped, 0 cancelled. The armv7 job passes all four v2/v3 debug/release builds; Android also passes.Prerequisite #111 also passes all 19 jobs at its current head.