Upgrading to mimalloc to 3.x.x would need huge architecture changes, maybe we need to write a PEP for this.
But upgrading to latest 2.5.2 version would get following benefits.
Some CPython downstream changes are already applied to upstream.
(I am the mimalloc maintainer): Ah, apologies, I wasn't aware of this effort @corona10 :-( -- I just added a comment in #113141 about recent efforts to update to mimalloc v3 for the next CPython release -- hope that doesn't interfere with the current efforts too much. I think is better though than upgrading the v2 version, as v3 has many improvements. Hope we can work on this.
(I am the mimalloc maintainer): Ah, apologies, I wasn't aware of this effort @corona10 :-( -- I just added a #113141 (comment) about recent efforts to update to mimalloc v3 for the next CPython release
Yeah please send a draft PR as I replied. There are a lot of things to be verified. I am fine to move on v3 directly as possible.
Activity
corona10 commented on Oct 10, 2026
IMO, we don't need to backport this change to previous version since we did not chage anything about mimalloc for a while.
StanFromIreland commented on Oct 11, 2026
See also #113141.
Merge remote-tracking branch 'upstream/main' into pythongh-159111
Merge remote-tracking branch 'upstream/main' into pythongh-159111
daanx commented on Oct 17, 2026
(I am the mimalloc maintainer): Ah, apologies, I wasn't aware of this effort @corona10 :-( -- I just added a comment in #113141 about recent efforts to update to mimalloc v3 for the next CPython release -- hope that doesn't interfere with the current efforts too much. I think is better though than upgrading the v2 version, as v3 has many improvements. Hope we can work on this.
corona10 commented on Oct 17, 2026
Yeah please send a draft PR as I replied. There are a lot of things to be verified. I am fine to move on v3 directly as possible.
4 remaining items
[3.15] pythongh-159111: Update vendored mimalloc to v2.5.2 (pythongh-…
pythongh-159111: Mark remaining CPython-specific changes in vendored …
pythongh-159111: Mark remaining CPython-specific changes in vendored …
pythongh-159111: Restore arc4random_buf() usage on Cygwin in vendored…
pythongh-159111: Remove the mimalloc update entry from What's New in …
gh-159111: Add missing downstream changes when upgrade to 2.5.2. (gh-…
[3.14] gh-159111: Update vendored mimalloc to v2.5.2 (gh-159112) (gh-…
[3.15] gh-159111: Update vendored mimalloc to v2.5.2 (gh-159112) (gh-…
corona10 commented on Oct 22, 2026
@DinoV and I agreed to target v3 for the main branch, but we'll upgrade to 2.5.2 for now, since we still need to backport these changes.
cc @daanx