diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-01-14 00:17:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 00:17:28 (GMT) |
commit | 322f962f3ee31d0dbde99e36379de8488ccc6804 (patch) | |
tree | 5ff4958e37f0f556294804c2918bdfeb9ea87417 /Python/pystate.c | |
parent | 324908ba936d5d262026deebb81f050803848c41 (diff) | |
download | cpython-322f962f3ee31d0dbde99e36379de8488ccc6804.zip cpython-322f962f3ee31d0dbde99e36379de8488ccc6804.tar.gz cpython-322f962f3ee31d0dbde99e36379de8488ccc6804.tar.bz2 |
bpo-45953: Statically initialize all the non-object PyInterpreterState fields we can. (gh-30589)
https://bugs.python.org/issue45953
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 2315685..4b698f2 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -281,7 +281,6 @@ init_interpreter(PyInterpreterState *interp, assert(id > 0 || (id == 0 && interp == runtime->interpreters.main)); interp->id = id; - interp->id_refcount = -1; assert(runtime->interpreters.head == interp); assert(next != NULL || (interp == runtime->interpreters.main)); @@ -291,14 +290,6 @@ init_interpreter(PyInterpreterState *interp, _PyGC_InitState(&interp->gc); PyConfig_InitPythonConfig(&interp->config); _PyType_InitCache(interp); - interp->eval_frame = NULL; -#ifdef HAVE_DLOPEN -#if HAVE_DECL_RTLD_NOW - interp->dlopenflags = RTLD_NOW; -#else - interp->dlopenflags = RTLD_LAZY; -#endif -#endif interp->_initialized = 1; } |