cpython/Tools/c-analyzer/c_parser
Miss Islington (bot) bc997b38b6
[3.12] gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740) (gh-105765)
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 b87d288275)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2023-06-14 01:34:26 +00:00
..
parser [3.12] gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740) (gh-105765) 2023-06-14 01:34:26 +00:00
preprocessor [3.12] gh-105699: Use a Thread-Local Variable for PKGCONTEXT (gh-105740) (gh-105765) 2023-06-14 01:34:26 +00:00
__init__.py gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00
__main__.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
datafiles.py bpo-36876: [c-analyzer tool] Tighten up the results and output. (GH-23431) 2020-11-20 15:39:28 -07:00
info.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
match.py bpo-36876: Small adjustments to the C-analyzer tool. (GH-23045) 2020-10-30 15:46:52 -06:00
source.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00