We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df3267 commit 1a3e836Copy full SHA for 1a3e836
Include/internal/pycore_pystate.h
@@ -19,6 +19,9 @@ extern "C" {
19
#include "pycore_pymem.h"
20
#include "pycore_warnings.h"
21
22
+// forward
23
+struct pyruntimestate;
24
+
25
26
/* ceval state */
27
@@ -68,6 +71,7 @@ struct _is {
68
71
69
72
struct _is *next;
70
73
struct _ts *tstate_head;
74
+ struct pyruntimestate *runtime;
75
76
int64_t id;
77
int64_t id_refcount;
Python/pystate.c
@@ -202,6 +202,9 @@ PyInterpreterState_New(void)
202
}
203
204
memset(interp, 0, sizeof(*interp));
205
206
+ interp->runtime = &_PyRuntime;
207
208
interp->id_refcount = -1;
209
interp->check_interval = 100;
210
0 commit comments