gh-90815: Add mimalloc memory allocator by tiran · Pull Request #31164 · python/cpython (original) (raw)
tiran mentioned this pull request
Aeron mentioned this pull request
DinoV added a commit to DinoV/cpython that referenced this pull request
DinoV added a commit to DinoV/cpython that referenced this pull request
DinoV added a commit to DinoV/cpython that referenced this pull request
vstinner added a commit that referenced this pull request
- Add mimalloc v2.12
Modified src/alloc.c to remove include of alloc-override.c and not compile new handler.
Did not include the following files:
- include/mimalloc-new-delete.h
- include/mimalloc-override.h
- src/alloc-override-osx.c
- src/alloc-override.c
- src/static.c
- src/region.c
mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different.
- mimalloc: minimal changes for use in Python:
- remove debug spam for freeing large allocations
- use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests
- Don't export mimalloc symbol in libpython.
- Enable mimalloc as Python allocator option.
- Add mimalloc MIT license.
- Log mimalloc in Lib/test/pythoninfo.py.
- Document new mimalloc support.
- Use macro defs for exports as done in: #31164
Co-authored-by: Sam Gross colesbury@gmail.com Co-authored-by: Christian Heimes christian@python.org Co-authored-by: Victor Stinner vstinner@python.org
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request
- Add mimalloc v2.12
Modified src/alloc.c to remove include of alloc-override.c and not compile new handler.
Did not include the following files:
- include/mimalloc-new-delete.h
- include/mimalloc-override.h
- src/alloc-override-osx.c
- src/alloc-override.c
- src/static.c
- src/region.c
mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different.
- mimalloc: minimal changes for use in Python:
- remove debug spam for freeing large allocations
- use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests
- Don't export mimalloc symbol in libpython.
- Enable mimalloc as Python allocator option.
- Add mimalloc MIT license.
- Log mimalloc in Lib/test/pythoninfo.py.
- Document new mimalloc support.
- Use macro defs for exports as done in: python#31164
Co-authored-by: Sam Gross colesbury@gmail.com Co-authored-by: Christian Heimes christian@python.org Co-authored-by: Victor Stinner vstinner@python.org
aisk pushed a commit to aisk/cpython that referenced this pull request
- Add mimalloc v2.12
Modified src/alloc.c to remove include of alloc-override.c and not compile new handler.
Did not include the following files:
- include/mimalloc-new-delete.h
- include/mimalloc-override.h
- src/alloc-override-osx.c
- src/alloc-override.c
- src/static.c
- src/region.c
mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different.
- mimalloc: minimal changes for use in Python:
- remove debug spam for freeing large allocations
- use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests
- Don't export mimalloc symbol in libpython.
- Enable mimalloc as Python allocator option.
- Add mimalloc MIT license.
- Log mimalloc in Lib/test/pythoninfo.py.
- Document new mimalloc support.
- Use macro defs for exports as done in: python#31164
Co-authored-by: Sam Gross colesbury@gmail.com Co-authored-by: Christian Heimes christian@python.org Co-authored-by: Victor Stinner vstinner@python.org
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request
- Add mimalloc v2.12
Modified src/alloc.c to remove include of alloc-override.c and not compile new handler.
Did not include the following files:
- include/mimalloc-new-delete.h
- include/mimalloc-override.h
- src/alloc-override-osx.c
- src/alloc-override.c
- src/static.c
- src/region.c
mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different.
- mimalloc: minimal changes for use in Python:
- remove debug spam for freeing large allocations
- use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests
- Don't export mimalloc symbol in libpython.
- Enable mimalloc as Python allocator option.
- Add mimalloc MIT license.
- Log mimalloc in Lib/test/pythoninfo.py.
- Document new mimalloc support.
- Use macro defs for exports as done in: python#31164
Co-authored-by: Sam Gross colesbury@gmail.com Co-authored-by: Christian Heimes christian@python.org Co-authored-by: Victor Stinner vstinner@python.org
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
[ Show hidden characters]({{ revealButtonHref }})