This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gregory.p.smith, vstinner
Date 2017-04-26.08:00:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493193614.56.0.783427648533.issue30165@psf.upfronthosting.co.za>
In-reply-to
Content
> 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()
History
Date User Action Args
2017-04-26 08:00:14vstinnersetrecipients: + vstinner, gregory.p.smith
2017-04-26 08:00:14vstinnersetmessageid: <1493193614.56.0.783427648533.issue30165@psf.upfronthosting.co.za>
2017-04-26 08:00:14vstinnerlinkissue30165 messages
2017-04-26 08:00:14vstinnercreate