Staging
v0.5.1
https://github.com/python/cpython
Revision b15bdf7f7a736f49f783ab75904e6b2438449743 authored by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC, committed by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC
When a thread touches such an object for the first time, a new thread-local __dict__ is created,
and the __init__ method is run.
But a thread switch can occur here; if the other thread touches the same object, it installs another
__dict__; when the first thread resumes, it updates the dictionary of the second...

This is the deep cause of the failures in test_multiprocessing involving "managers" objects.

Backport of r64601.
1 parent ceda6a6
History
Tip revision: b15bdf7f7a736f49f783ab75904e6b2438449743 authored by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC
#Issue3088 in-progress: Race condition with instances of classes derived from threading.local:
Tip revision: b15bdf7
File Mode Size
VC6
bdist_wininst
example_nt
icons
os2emx
os2vacpp
WinMain.c -rw-r--r-- 447 bytes
_msi.c -rw-r--r-- 27.2 KB
_subprocess.c -rw-r--r-- 13.8 KB
_winreg.c -rw-r--r-- 42.6 KB
config.c -rw-r--r-- 4.4 KB
dl_nt.c -rw-r--r-- 908 bytes
dllbase_nt.txt -rw-r--r-- 3.5 KB
empty.c -rw-r--r-- 137 bytes
errmap.h -rw-r--r-- 1.6 KB
errmap.mak -rw-r--r-- 95 bytes
frozen_dllmain.c -rw-r--r-- 3.6 KB
generrmap.c -rw-r--r-- 452 bytes
getpathp.c -rw-r--r-- 18.3 KB
icons.mak -rw-r--r-- 213 bytes
icons.rc -rw-r--r-- 59 bytes
import_nt.c -rw-r--r-- 2.4 KB
make_versioninfo.c -rw-r--r-- 1.2 KB
msvcrtmodule.c -rwxr-xr-x 5.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-- 18.8 KB
python.mk -rw-r--r-- 234 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-- 7.2 KB

readme.txt

back to top