diff options
author | Victor Stinner <vstinner@redhat.com> | 2016-03-10 10:33:46 +0100 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2016-04-21 02:02:44 +0200 |
commit | 383a44e5c8e875b671ce5568b635ed0fd00490ad (patch) | |
tree | abf8baf5c1e53e15f302d5c0669ab6ff25262718 /numpy/core/setup_common.py | |
parent | cb4b28cee6adfec4fe688639405833e9628f72d1 (diff) | |
download | numpy-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