Message292314
> but faulthandler_dump_traceback calls PyGILState_GetThisThreadState() which ultimately calls thread.c's find_key() which acquires a lock:
Hum, Python 3 now uses native TLS, not this fallback implementation using a lock. At least on Linux and Windows. I don't know if the fallback implementation is still used (which platforms supported by Python don't provide pthread API?
PyGILState_GetThisThreadState -> PyThread_get_key_value:
* pthread: pthread_getspecific()
* Windows ("nt"): TlsGetValue() |
|
Date |
User |
Action |
Args |
2017-04-26 08:00:14 | vstinner | set | recipients:
+ vstinner, gregory.p.smith |
2017-04-26 08:00:14 | vstinner | set | messageid: <1493193614.56.0.783427648533.issue30165@psf.upfronthosting.co.za> |
2017-04-26 08:00:14 | vstinner | link | issue30165 messages |
2017-04-26 08:00:14 | vstinner | create | |
|