Skip to content

Upgrade mimalloc version from 2.1.2 to 2.5.2 #159111

Closed

Description

@corona10

Feature or enhancement

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.

  1. Some CPython downstream changes are already applied to upstream.
  2. Handling abandoned segments have been improved.
  3. Several memory leakage issues are fixed.
  4. Security fixes are applied.

I 've applied changes in my local but we need to veify this on free-threading performance benchmark from Meta.

cc @mpage @itamaro @colesbury

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added a commit that references this issue on Oct 22, 2026
  2. added 8 commits that reference this issue on Oct 22, 2026
  3. corona10 commented on Oct 22, 2026

    @corona10
    MemberAuthor

    @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

  4. moved this from Todo to Done in Sprinton Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions