mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
![]() 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.
(cherry picked from commit
|
||
---|---|---|
.. | ||
parser | ||
preprocessor | ||
__init__.py | ||
__main__.py | ||
datafiles.py | ||
info.py | ||
match.py | ||
source.py |