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 f5e46b5 commit 795e703Copy full SHA for 795e703
1 file changed
Python/pystate.c
@@ -1814,8 +1814,8 @@ tstate_delete_common(PyThreadState *tstate, int release_gil)
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)((_PyThreadStateImpl *)tstate)->gc.alloc_count);
1818
- ((_PyThreadStateImpl *)tstate)->gc.alloc_count = 0;
+ (int)tstate_impl->gc.alloc_count);
+ tstate_impl->gc.alloc_count = 0;
1819
#endif
1820
1821
#if _Py_TIER2
0 commit comments