Skip to content

chore(deps): update mimalloc to v2.5.3 and mimalloc3 to v3.7.0 - #126

Merged
shulaoda merged 1 commit into
mainfrom
chore/mimalloc-v2.5.3-v3.7.0
Nov 23, 2026
Merged

shulaoda merged 1 commit into
mainfrom
chore/mimalloc-v2.5.3-v3.7.0

Conversation

@shulaoda

@shulaoda shulaoda commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Update both submodules to the latest upstream releases:

  • mimalloc (v2): v2.5.2 (2406cc5f) → v2.5.3 (9593e865)
  • mimalloc3 (v3): v3.6.1 (56dc5eb8) → v3.7.0 (1ed67b51)

No change to build.rs or the Rust sources.

v2.5.3

Small release: fixes commit stats for on-demand commit (microsoft/mimalloc#1482), defines mi_malloc_size/mi_malloc_usable_size without MI_MALLOC_OVERRIDE, and on Windows no longer attaches to the parent console when there is no stderr (output goes to OutputDebugString).

v3.7.0

A large release: many race and use-after-free fixes around heap delete and concurrent frees, arena purge and commit fixes, plus new opt-in features (MTE, PAC, MI_SECURE=CHECKED) that we do not enable. Changes that may be visible to users of the v3 feature:

  • Internal large pages are off by default. Blocks between 80 KiB and 512 KiB no longer share 4 MiB pages; each one gets its own singleton page. This usually lowers memory use but makes alloc/free of these sizes slower. It can be turned back on with -DMI_ENABLE_LARGE_PAGES=1.
  • secure + v3: MI_SECURE_ENV now defaults to on with MI_SECURE>=1, so only MIMALLOC_SHOW_STATS, MIMALLOC_VERBOSE, and MIMALLOC_ALLOW_THP are read from the environment.
  • Unknown MIMALLOC_* environment variables now print a warning (when errors are shown, e.g. in debug builds).
  • realloc only shrinks in place with at most 12.5% waste (was 50%), except for huge blocks, where the tail is reset instead.

Build notes:

  • v3 now checks that backtrace links (MI_HAS_BACKTRACE) instead of only checking for execinfo.h. So the Android MI_HAS_EXECINFOH=OFF override in build.rs no longer has an effect: Android below API 33 falls back to _Unwind_Backtrace on its own. I left it as is; it can be removed in a follow-up once the Android build passes here.
  • src/static.c includes the new source files, and the Windows link libraries are unchanged, so the cc build on Windows needs no change.
  • The library name is still mimalloc / mimalloc-secure.
  • In the option enum, mi_option_unsafe_guarded_precise is renamed to mi_option_deprecated_unsafe_guarded_precise and mi_option_mte is added at the end; existing values do not change.

@shulaoda
shulaoda merged commit 0f9c625 into main Nov 23, 2026
20 checks passed
@shulaoda
shulaoda deleted the chore/mimalloc-v2.5.3-v3.7.0 branch November 23, 2026 09:40
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
shulaoda pushed a commit that referenced this pull request Nov 23, 2026
## 🤖 New release

* `libmimalloc-sys2`: 0.1.66 -> 0.1.67 (✓ API compatible changes)
* `mimalloc-safe`: 0.1.70 -> 0.1.71

<details><summary><i><b>Changelog</b></i></summary><p>

## `libmimalloc-sys2`

<blockquote>

## [0.1.67] - 2026-11-23

### Chore

- *(deps)* Update mimalloc to v2.5.3 and mimalloc3 to v3.7.0
([#126](#126))
</blockquote>

## `mimalloc-safe`

<blockquote>

## [0.1.71] - 2026-11-23

### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant