Skip to content

Commit e60bc49

Browse files
committed
Avoid TSAN warning.
1 parent 4a65893 commit e60bc49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Python/gc_free_threading.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,10 +2347,10 @@ gc_collect_internal(PyInterpreterState *interp, struct collection_state *state,
23472347
if (err == 0) {
23482348
clear_weakrefs(state);
23492349
}
2350-
_PyEval_StartTheWorld(interp);
2351-
23522350
// Record the number of live GC objects
23532351
interp->gc.long_lived_total = state->long_lived_total;
2352+
_PyEval_StartTheWorld(interp);
2353+
23542354

23552355
if (err < 0) {
23562356
cleanup_worklist(&state->unreachable);

0 commit comments

Comments
 (0)