SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 99 Python

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.
T
Tony Roberts committed
4860f01ac0f07cdc8fc0cc27c33f5a64e5cfec9f
Parent: 2de576e
Committed by Steve Dower <steve.dower@microsoft.com> on 2/2/2019, 5:16:42 PM