Skip to content
Prev Previous commit
Next Next commit
Merge branch 'main' into gh-137400-now-with-fewer-crashes
  • Loading branch information
colesbury committed Aug 7, 2025
commit e79ed43b8bc05f940b92c3356a2270113939deda
4 changes: 2 additions & 2 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,11 +1685,11 @@ PyThreadState_Clear(PyThreadState *tstate)
}

if (tstate->c_profilefunc != NULL) {
_Py_atomic_add_ssize(&tstate->interp->sys_profiling_threads, -1);
FT_ATOMIC_ADD_SSIZE(tstate->interp->sys_profiling_threads, -1);
tstate->c_profilefunc = NULL;
}
if (tstate->c_tracefunc != NULL) {
_Py_atomic_add_ssize(&tstate->interp->sys_tracing_threads, -1);
FT_ATOMIC_ADD_SSIZE(tstate->interp->sys_tracing_threads, -1);
tstate->c_tracefunc = NULL;
}

Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.