We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d01b65 commit 8be49b5Copy full SHA for 8be49b5
1 file changed
Python/pystate.c
@@ -1810,14 +1810,6 @@ tstate_delete_common(PyThreadState *tstate, int release_gil)
1810
assert(tstate_impl->refcounts.values == NULL);
1811
#endif
1812
1813
-#ifdef Py_GIL_DISABLED
1814
- // Flush the thread's local GC allocation count to the global count
1815
- // before the thread state is deleted, otherwise the count is lost.
1816
- _Py_atomic_add_int(&tstate->interp->gc.young.count,
1817
- (int)tstate_impl->gc.alloc_count);
1818
- tstate_impl->gc.alloc_count = 0;
1819
-#endif
1820
-
1821
#if _Py_TIER2
1822
_PyThreadStateImpl *_tstate = (_PyThreadStateImpl *)tstate;
1823
if (_tstate->jit_tracer_state.code_buffer != NULL) {
0 commit comments