Add back in the 'interp' variable to PyFinalizeEx() to fix the build

This commit is contained in:
Lewis Gaul 2020-11-23 21:00:46 +00:00
parent c285f52bbb
commit 95cbfd495e
1 changed files with 4 additions and 3 deletions

View File

@ -1649,6 +1649,7 @@ Py_FinalizeEx(void)
/* Get current thread state and interpreter pointer */ /* Get current thread state and interpreter pointer */
PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime); PyThreadState *tstate = _PyRuntimeState_GetThreadState(runtime);
PyInterpreterState *interp = tstate->interp;
/* Check we're running in the main interpreter (not yet supported to call /* Check we're running in the main interpreter (not yet supported to call
* from any interpreter). * from any interpreter).
@ -1706,13 +1707,13 @@ Py_FinalizeEx(void)
/* Copy the core config, PyInterpreterState_Delete() free /* Copy the core config, PyInterpreterState_Delete() free
the core config memory */ the core config memory */
#ifdef Py_REF_DEBUG #ifdef Py_REF_DEBUG
int show_ref_count = tstate->interp->config.show_ref_count; int show_ref_count = interp->config.show_ref_count;
#endif #endif
#ifdef Py_TRACE_REFS #ifdef Py_TRACE_REFS
int dump_refs = tstate->interp->config.dump_refs; int dump_refs = interp->config.dump_refs;
#endif #endif
#ifdef WITH_PYMALLOC #ifdef WITH_PYMALLOC
int malloc_stats = tstate->interp->config.malloc_stats; int malloc_stats = interp->config.malloc_stats;
#endif #endif
/* Remaining daemon threads will automatically exit /* Remaining daemon threads will automatically exit