FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Mimallocv3 upstream fixes by DinoV · Pull Request #159863 · python/cpython · GitHub

Repository navigation

Mimallocv3 upstream fixes - #159863

Draft
DinoV wants to merge 25 commits into
python:mainfrom
DinoV:mimallocv3-upstream-fixes
Draft

DinoV wants to merge 25 commits into
python:mainfrom
DinoV:mimallocv3-upstream-fixes

Conversation

DinoV commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

daanx and others added 25 commits October 19, 2026 10:06
Sync Objects/mimalloc and Include/internal/mimalloc with
microsoft/mimalloc dev3 (e34c9d38, "fix qsbr tests") plus the
CPython-motivated fixes that are being proposed upstream, replacing the
local edits previously made directly to the vendored copy:

- Put mi_decl_forceinline before the return type (-Wold-style-declaration)
- Fix MI_ARENA_SLICE_SHIFT selection on WASI
- Use quoted, relative includes for mimalloc's own headers
- Fix debug assertion during process init with MI_WIN_INIT_USE_FLS
- Mark memory written by raw syscalls as initialized under MSan
- Emscripten: allocate OS memory from the builtin allocator
- Allow disabling the aligned-allocation fallback warning
  (MI_NO_ALIGN_FALLBACK_WARNING)
- Allow not defining the weak std::get_new_handler in C builds
  (MI_NO_CXX_NEW_HANDLER)
- Fix build with MI_NO_THP after the MADV_NOHUGEPAGE change
- Fix -Wsign-compare warning when reading hpage_pmd_size
- Remove trailing whitespace

This also picks up the dev3 commits since the previous snapshot
(e83c5605), including transparent huge page detection changes, allowing
page abandonment for QSBR pages, and relaxed atomics in
mi_free_block_mt.

Define MI_NO_ALIGN_FALLBACK_WARNING in pycore_mimalloc.h, since the
vendored copy no longer has the warning commented out.

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35261958 | 📁 Comparing 2e001e5 against main (4c73f50)

  🔍 Preview build  

1 file changed
± license.html

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL