Staging
v0.8.1
v0.8.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
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)
bpo-35368: Make PyMem_Malloc() thread-safe in debug mode (GH-10828)
Tip revision: c275be5
File | Mode | Size |
---|---|---|
VC6 | ||
VS7.1 | ||
VS8.0 | ||
VS9.0 | ||
bdist_wininst | ||
os2emx | ||
os2vacpp | ||
WinMain.c | -rw-r--r-- | 447 bytes |
_msi.c | -rw-r--r-- | 31.8 KB |
_subprocess.c | -rw-r--r-- | 19.8 KB |
_winreg.c | -rw-r--r-- | 60.5 KB |
config.c | -rw-r--r-- | 4.5 KB |
dl_nt.c | -rw-r--r-- | 4.2 KB |
dllbase_nt.txt | -rw-r--r-- | 3.5 KB |
empty.c | -rw-r--r-- | 137 bytes |
errmap.h | -rw-r--r-- | 2.1 KB |
errmap.mak | -rw-r--r-- | 95 bytes |
frozen_dllmain.c | -rw-r--r-- | 3.9 KB |
generrmap.c | -rw-r--r-- | 503 bytes |
getpathp.c | -rw-r--r-- | 21.0 KB |
icons.mak | -rw-r--r-- | 213 bytes |
icons.rc | -rw-r--r-- | 59 bytes |
import_nt.c | -rw-r--r-- | 2.7 KB |
make_versioninfo.c | -rw-r--r-- | 1.2 KB |
msvcrtmodule.c | -rw-r--r-- | 11.0 KB |
py.ico | -rw-r--r-- | 19.3 KB |
pyc.ico | -rw-r--r-- | 19.3 KB |
pycon.ico | -rw-r--r-- | 19.3 KB |
pyconfig.h | -rw-r--r-- | 20.8 KB |
python.mk | -rw-r--r-- | 229 bytes |
python_exe.rc | -rw-r--r-- | 49 bytes |
python_nt.rc | -rw-r--r-- | 1.8 KB |
readme.txt | -rw-r--r-- | 4.1 KB |
testpy.py | -rw-r--r-- | 834 bytes |
w9xpopen.c | -rw-r--r-- | 3.6 KB |
winsound.c | -rw-r--r-- | 5.3 KB |
Computing file changes ...