cpython/Tools/c-analyzer/c_parser/parser
Eric Snow b87d288275
gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740)
This fixes a race during import. The existing _PyRuntimeState.imports.pkgcontext is shared between interpreters, and occasionally this would cause a crash when multiple interpreters were importing extensions modules at the same time.  To solve this we add a thread-local variable for the value.  We also leave the existing state (and infrequent race) in place for platforms that do not support thread-local variables.
2023-06-13 18:58:23 -06:00
..
__init__.py
_common.py
_compound_decl_body.py
_func_body.py
_global.py
_info.py
_regexes.py gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740) 2023-06-13 18:58:23 -06:00