summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2016-03-10 10:33:46 +0100
committerVictor Stinner <vstinner@redhat.com>2016-04-21 02:02:44 +0200
commit383a44e5c8e875b671ce5568b635ed0fd00490ad (patch)
treeabf8baf5c1e53e15f302d5c0669ab6ff25262718 /numpy/core/setup_common.py
parentcb4b28cee6adfec4fe688639405833e9628f72d1 (diff)
downloadnumpy-383a44e5c8e875b671ce5568b635ed0fd00490ad.tar.gz
Use PyMem_RawMalloc on Python 3.4 and newer
Change PyArray_malloc() macro to use PyMem_RawMalloc() on Python 3.4 and newer. This macro can be called indirectly from ufunc_at() which releases the GIL, whereas PyMem_Malloc() requires the GIL to be held: https://docs.python.org/dev/c-api/memory.html#memory-interface PyMem_RawMalloc() can be called without the GIL.
Diffstat (limited to 'numpy/core/setup_common.py')
0 files changed, 0 insertions, 0 deletions