gh-140544: Always assume that thread locals are available by ZeroIntensity · Pull Request #140690 · python/cpython
ZeroIntensity
changed the title
gh-140544: Always assume the
gh-140544: Always assume that thread locals are availableHAVE_THREAD_LOCAL macro is defined.
This fixes extensions that define Py_BUILD_CORE after including Python.h, but before including pycore_pystate.h, such as mypyc.
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request
…onGH-140690) Python has required thread local support since 3.12 (see pythonGH-103324). By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the attached thread and interpreter states directly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters