Staging
v0.5.1
https://github.com/python/cpython
Revision c275be54411d425c90e7c679ddb5321ba458f61d authored by Victor Stinner on 03 December 2018, 11:29:29 UTC, committed by GitHub on 03 December 2018, 11:29:29 UTC
When Python is compiled in debug mode, PyMem_Malloc() uses debug
hooks, but it also uses pymalloc allocator instead of malloc().
Problem: pymalloc is not thread-safe, whereas PyMem_Malloc() is
thread-safe in release mode (it's a thin wrapper to malloc() in this
case).

Modify the debug hook to use malloc() for PyMem_Malloc().
1 parent dfd4a1d
History
Tip revision: c275be54411d425c90e7c679ddb5321ba458f61d authored by Victor Stinner on 03 December 2018, 11:29:29 UTC
bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828)
Tip revision: c275be5
File Mode Size
Python.asdl -rw-r--r-- 4.2 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 11.1 KB
asdl_c.py -rwxr-xr-x 40.8 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 7.2 KB
grammar1.c -rw-r--r-- 1.2 KB
intrcheck.c -rw-r--r-- 2.5 KB
listnode.c -rw-r--r-- 1.2 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 5.7 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.5 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 7.7 KB
pgen.c -rw-r--r-- 17.9 KB
pgenmain.c -rw-r--r-- 3.7 KB
printgrammar.c -rw-r--r-- 2.9 KB
spark.py -rw-r--r-- 26.3 KB
tokenizer.c -rw-r--r-- 48.9 KB
tokenizer.h -rw-r--r-- 2.9 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top