Browse Source
bpo-33895: Relase GIL while calling functions that acquire Windows loader lock (GH-7789)
bpo-33895: Relase GIL while calling functions that acquire Windows loader lock (GH-7789)
LoadLibrary, GetProcAddress, FreeLibrary and GetModuleHandle acquire the system loader lock. Calling these while holding the GIL will cause a deadlock on the rare occasion that another thread is detaching and needs to destroy its thread state at the same time.pull/11744/head
committed by
Steve Dower
8 changed files with 48 additions and 6 deletions
-
1Misc/NEWS.d/next/Windows/2018-06-19-11-57-50.bpo-33895.zpblTy.rst
-
13Modules/_ctypes/_ctypes.c
-
11Modules/_ctypes/callproc.c
-
2Modules/overlapped.c
-
11Modules/posixmodule.c
-
8PC/winreg.c
-
6Python/dynload_win.c
-
2Python/sysmodule.c
@ -0,0 +1 @@ |
|||
GIL is released while calling functions that acquire Windows loader lock. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue