8000 gh-119802: Update memory management docs for free-threaded build by corona10 · Pull Request #124006 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-119802: Update memory management docs for free-threaded build #124006

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

Merged
merged 6 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nit
  • Loading branch information
corona10 committed Sep 12, 2024
commit a92d9382af28498743e95173e71af2cb71fbb3ad
2 changes: 1 addition & 1 deletion Doc/c-api/memory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ returned by :c:func:`PyObject_Malloc` for allocating memory for buffers.
However, in the free-threaded build, Python objects must be allocated through :c:func:`PyObject_Malloc`.
Non-Python objects must not be allocated this function, for example, it is currently acceptable to
allocate buffers(non-Python objects) through :c:func:`PyObject_Malloc`; that will no longer be allowed
and buffers should instead be allocated through :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`..
and buffers should instead be allocated through :c:func:`PyMem_Malloc`, :c:func:`PyMem_RawMalloc`, or :c:func:`malloc`.

The three allocation domains are:

Expand Down
Loading
0