You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of this, memory allocation (including the use of Bytes objects) will need to be switched to use exclusively PyMem_RawMalloc, as PyMem_Malloc and PyBytes_* operations (which internally use PyObject_Malloc) are not safe to be used without the GIL: https://docs.python.org/3/c-api/memory.html
The text was updated successfully, but these errors were encountered:
This requires wrapping code in
Py_BEGIN_ALLOW_THREADS
: https://docs.python.org/3/c-api/init.html#releasing-the-gil-from-extension-codeAs part of this, memory allocation (including the use of Bytes objects) will need to be switched to use exclusively
PyMem_RawMalloc
, asPyMem_Malloc
andPyBytes_*
operations (which internally usePyObject_Malloc
) are not safe to be used without the GIL: https://docs.python.org/3/c-api/memory.htmlThe text was updated successfully, but these errors were encountered: