File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1644,9 +1644,6 @@ Py_FinalizeEx(void)
1644
1644
1645
1645
/* Get current thread state and interpreter pointer */
1646
1646
PyThreadState * tstate = _PyRuntimeState_GetThreadState (runtime );
1647
- #if (defined(Py_REF_DEBUG ) || defined(Py_TRACE_REFS ) || defined(WITH_PYMALLOC ))
1648
- PyInterpreterState * interp = tstate -> interp ;
1649
- #endif
1650
1647
1651
1648
// Wrap up existing "threading"-module-created, non-daemon threads.
1652
1649
wait_for_thread_shutdown (tstate );
@@ -1669,13 +1666,13 @@ Py_FinalizeEx(void)
1669
1666
/* Copy the core config, PyInterpreterState_Delete() free
1670
1667
the core config memory */
1671
1668
#ifdef Py_REF_DEBUG
1672
- int show_ref_count = interp -> config .show_ref_count ;
1669
+ int show_ref_count = tstate -> interp -> config .show_ref_count ;
1673
1670
#endif
1674
1671
#ifdef Py_TRACE_REFS
1675
- int dump_refs = interp -> config .dump_refs ;
1672
+ int dump_refs = tstate -> interp -> config .dump_refs ;
1676
1673
#endif
1677
1674
#ifdef WITH_PYMALLOC
1678
- int malloc_stats = interp -> config .malloc_stats ;
1675
+ int malloc_stats = tstate -> interp -> config .malloc_stats ;
1679
1676
#endif
1680
1677
1681
1678
/* Remaining daemon threads will automatically exit
You can’t perform that action at this time.
0 commit comments