gh-81057: Move the Cached Parser Dummy Name to _PyRuntimeState (#100277)

This commit is contained in:
Eric Snow 2022-12-16 06:48:03 -07:00 committed by GitHub
parent 5ee7eb9deb
commit 0415cf895f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 25 deletions

View file

@ -9,6 +9,7 @@ extern "C" {
#endif
#include "pycore_object.h"
#include "pycore_parser.h"
#include "pycore_pymem_init.h"
#include "pycore_obmalloc_init.h"
@ -32,6 +33,7 @@ extern "C" {
until _PyInterpreterState_Enable() is called. */ \
.next_id = -1, \
}, \
.parser = _parser_runtime_state_INIT, \
.imports = { \
.lock = { \
.mutex = NULL, \