summaryrefslogtreecommitdiff
path: root/numpy/lib/nanfunctions.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-07-05 23:09:12 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-07-05 23:13:30 +0200
commitc9c53ea985565d7d78f23519b9c5db630ac76d3d (patch)
treecd87185bf17c08fcae036c1a42ffda56be1842ff /numpy/lib/nanfunctions.py
parent7a2b14ae0adb762a3eb8991595b14f74f004f435 (diff)
downloadnumpy-c9c53ea985565d7d78f23519b9c5db630ac76d3d.tar.gz
BUG: disable garbage collector during memory allocation hook
When a cython object contains numpy arrays the pure python allocation hook can trigger during cythons __dealloc__ method and trigger a second deletion of the object currently being deleted. To minimize the probabily that that happens disable the garbage collector during the hook. As this involves python calls it is still possible that a double delete occurs but chances are lowered, a proper solution would be C only hook like python 3.4 tracemalloc module. Closes gh-4834
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions