gh-122581: Use parser mutex in default build for subinterpreters (gh-… · python/cpython@2b4feee · GitHub
Skip to content

Commit 2b4feee

Browse files
authored
gh-122581: Use parser mutex in default build for subinterpreters (gh-142959)
1 parent 7607712 commit 2b4feee

3 files changed

Lines changed: 9 additions & 28 deletions

File tree

Include/internal/pycore_parser.h

Lines changed: 0 additions & 16 deletions

Include/internal/pycore_runtime_structs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ struct _fileutils_state {
7777
struct _parser_runtime_state {
7878
#ifdef Py_DEBUG
7979
long memo_statistics[_PYPEGEN_NSTATISTICS];
80-
#ifdef Py_GIL_DISABLED
8180
PyMutex mutex;
82-
#endif
8381
#else
8482
int _not_used;
8583
#endif

Parser/pegen.c

Lines changed: 9 additions & 10 deletions

0 commit comments

Comments
 (0)