diff options
| author | Richard Oudkerk <shibturn@gmail.com> | 2012-06-18 16:02:49 +0100 |
|---|---|---|
| committer | Richard Oudkerk <shibturn@gmail.com> | 2012-06-18 16:02:49 +0100 |
| commit | 081a22b2d71938302ecdd602a73c9580fa2ad8d0 (patch) | |
| tree | 61527f94e6c959c76f18c8e6eba252362a151c37 /Python/pystate.c | |
| parent | 082aed4d9e04afe95df65be8ed4333124561e426 (diff) | |
| parent | 0756856b91b3ec6a6da2c38cc88f90df49e63abc (diff) | |
| download | cpython-081a22b2d71938302ecdd602a73c9580fa2ad8d0.tar.gz | |
Issue #15101: Make pool finalizer avoid joining current thread.
Diffstat (limited to 'Python/pystate.c')
| -rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 31b5423d38..a0489ad08a 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -69,7 +69,6 @@ PyInterpreterState_New(void) Py_FatalError("Can't initialize threads for interpreter"); #endif interp->modules = NULL; - interp->modules_reloading = NULL; interp->modules_by_index = NULL; interp->sysdict = NULL; interp->builtins = NULL; @@ -79,6 +78,7 @@ PyInterpreterState_New(void) interp->codec_error_registry = NULL; interp->codecs_initialized = 0; interp->fscodec_initialized = 0; + interp->importlib = NULL; #ifdef HAVE_DLOPEN #ifdef RTLD_NOW interp->dlopenflags = RTLD_NOW; @@ -113,9 +113,9 @@ PyInterpreterState_Clear(PyInterpreterState *interp) Py_CLEAR(interp->codec_error_registry); Py_CLEAR(interp->modules); Py_CLEAR(interp->modules_by_index); - Py_CLEAR(interp->modules_reloading); Py_CLEAR(interp->sysdict); Py_CLEAR(interp->builtins); + Py_CLEAR(interp->importlib); } |
