Repository navigation
fix(sys): use LOCAL TLS for mimalloc v3 on macOS again - #117
Merged
Merged
Conversation
With PTHREADS, `mi_process_done` deletes the default theap's pthread key at exit while other threads may still be allocating, so their next allocation re-initializes the thread: an assertion failure in debug builds and a new theap per allocation in release builds.
shulaoda
marked this pull request as ready for review
October 29, 2026 08:06
Merged
shulaoda
pushed a commit
that referenced
this pull request
Oct 29, 2026
## 🤖 New release * `libmimalloc-sys2`: 0.1.64 -> 0.1.65 (✓ API compatible changes) * `mimalloc-safe`: 0.1.68 -> 0.1.69 <details><summary><i><b>Changelog</b></i></summary><p> ## `libmimalloc-sys2` <blockquote> ## [0.1.65] - 2026-10-29 ### Bug Fixes - *(sys)* Use LOCAL TLS for mimalloc v3 on macOS again ([#117](#117)) </blockquote> ## `mimalloc-safe` <blockquote> ## [0.1.69] - 2026-10-29 ### Chore - Updated the following local packages: libmimalloc-sys2 </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>
shulaoda
added a commit
to rolldown/rolldown
that referenced
this pull request
Oct 29, 2026
Picks up napi-rs/mimalloc-safe#117 (LOCAL TLS on macOS again), fixing the CLI SIGABRT 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.
Related to #116
Go back to
MI_TLS_MODEL=LOCALfor v3 on macOS: withPTHREADS(#110),mi_process_donedeletes 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