Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-142518: Improve mimalloc allocator docs#145224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1074,6 +1074,13 @@ conflict. | ||
| * ``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks. | ||
| * ``mimalloc_debug``: same as ``mimalloc`` but also install debug hooks. | ||
| .. note:: | ||
| In the :term:`free-threaded <free threading>` build, the ``malloc``, | ||
| ``malloc_debug``, ``pymalloc``, and ``pymalloc_debug`` values are not | ||
| supported. Only ``default``, ``debug``, ``mimalloc``, and | ||
| ``mimalloc_debug`` are accepted. | ||
| .. versionadded:: 3.6 | ||
| .. versionchanged:: 3.7 | ||
| @@ -1083,12 +1090,13 @@ conflict. | ||
| .. envvar:: PYTHONMALLOCSTATS | ||
| If set to a non-empty string, Python will print statistics of the | ||
| :ref:`pymalloc memory allocator <pymalloc>` every time a new pymalloc object | ||
| arena is created, and on shutdown. | ||
| :ref:`pymalloc memory allocator <pymalloc>` or the | ||
| :ref:`mimalloc memory allocator <mimalloc>` (whichever is in use) | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On mimalloc I think it gets printed only at exit, I am not sure that even pymalloc prints it after each arena allocation | ||
| every time a new object arena is created, and on shutdown. | ||
| This variable is ignored if the :envvar:`PYTHONMALLOC` environment variable | ||
| is used to force the :c:func:`malloc` allocator of the C library, or if | ||
| Python is configured without ``pymalloc`` support. | ||
| Python is configured without both ``pymalloc`` and ``mimalloc`` support. | ||
| .. versionchanged:: 3.6 | ||
| This variable can now also be used on Python compiled in release mode. | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.