Skip to content

Commit 7c27c9f

Browse files
committed
Revert "Clear the thread-local."
This reverts commit 86144fc.
1 parent 0c16fea commit 7c27c9f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/pystate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ _PyRuntimeState_Fini(_PyRuntimeState *runtime)
402402
/* The count is cleared by _Py_FinalizeRefTotal(). */
403403
assert(runtime->object_state.interpreter_leaks == 0);
404404
#endif
405-
gilstate_clear();
406405
}
407406

408407
#ifdef HAVE_FORK
@@ -434,7 +433,6 @@ _PyRuntimeState_ReInitThreads(_PyRuntimeState *runtime)
434433
#endif
435434

436435
_PyTypes_AfterFork();
437-
gilstate_clear();
438436

439437
_PyThread_AfterFork(&runtime->threads);
440438

0 commit comments

Comments
 (0)