File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -861,8 +861,6 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
861
861
// XXX Once we have one allocator per interpreter (i.e.
862
862
// per-interpreter GC) we must ensure that all of the interpreter's
863
863
// objects have been cleaned up at the point.
864
-
865
- _PyInterpreterState_FinalizeRefTotal (interp );
866
864
}
867
865
868
866
@@ -906,6 +904,10 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
906
904
907
905
_PyEval_FiniState (& interp -> ceval );
908
906
907
+ // XXX This call should be done at the end of clear_interpreter(),
908
+ // but currently some objects get decref'ed after that.
909
+ _PyInterpreterState_FinalizeRefTotal (interp );
910
+
909
911
HEAD_LOCK (runtime );
910
912
PyInterpreterState * * p ;
911
913
for (p = & interpreters -> head ; ; p = & (* p )-> next ) {
You can’t perform that action at this time.
0 commit comments