Repository navigation
Commit dcf0299
committed
Update vendored mimalloc to upstream dev3
Sync Objects/mimalloc and Include/internal/mimalloc with
microsoft/mimalloc dev3 (1ff2382, "fix profile timestamps"). Most of
the local edits previously carried in the vendored copy have been
merged upstream (forceinline declaration order, WASI page size,
quoted includes, MSan syscalls, Emscripten builtin allocator,
MI_NO_ALIGN_FALLBACK_WARNING, MI_NO_CXX_NEW_HANDLER, __ImageBase,
trailing whitespace). The FLS init assertion fix is dropped as CPython
no longer uses MI_WIN_INIT_USE_FLS.
Changes still carried on top of dev3 (proposed upstream):
- Fix build with MI_NO_THP after the MADV_NOHUGEPAGE change
- Fix -Wsign-compare warning when reading hpage_pmd_size
- Fix data race on the thread-done pthread key at process exit
CPython-specific change:
- Purge expired ranges on arena free, as in mimalloc v2, to keep the
peak memory of short-running processes at v2 levels.
Define MI_NO_ALIGN_FALLBACK_WARNING in pycore_mimalloc.h, since the
vendored copy now has the upstream opt-out instead of the warning being
commented out.1 parent e8351ce commit dcf0299
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
0 commit comments