summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-12-07 22:56:31 (GMT)
committerGitHub <noreply@github.com>2022-12-07 22:56:31 (GMT)
commit91a8e002c21a5388c5152c5a4871b9a2d85f0fc1 (patch)
treee6be380d88efc246ca7b4f864a67fc541a62b861 /Parser/pegen.c
parentd47ffeb9e35dbc7264ffa12fddaa6e0d3ba767a4 (diff)
downloadcpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.zip
cpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.tar.gz
cpython-91a8e002c21a5388c5152c5a4871b9a2d85f0fc1.tar.bz2
gh-81057: Move More Globals to _PyRuntimeState (gh-100092)
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Parser/pegen.c')
-rw-r--r--Parser/pegen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c
index d34a86e..d84e068 100644
--- a/Parser/pegen.c
+++ b/Parser/pegen.c
@@ -246,8 +246,8 @@ _PyPegen_fill_token(Parser *p)
// The array counts the number of tokens skipped by memoization,
// indexed by type.
-#define NSTATISTICS 2000
-static long memo_statistics[NSTATISTICS];
+#define NSTATISTICS _PYPEGEN_NSTATISTICS
+#define memo_statistics _PyRuntime.parser.memo_statistics
void
_PyPegen_clear_memo_statistics()