Skip to content

Commit 28d6768

Browse files
committed
Adjust comment
1 parent 04f9582 commit 28d6768

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/obmalloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,9 +1109,9 @@ free_delayed(uintptr_t ptr)
11091109
#ifndef Py_GIL_DISABLED
11101110
free_work_item(ptr);
11111111
#else
1112-
if (_PyRuntime.stoptheworld.world_stopped || Py_IsFinalizing()) {
1113-
// Free immediately if the world is stopped and during interpreter
1114-
// shutdown.
1112+
if (Py_IsFinalizing() || _PyRuntime.stoptheworld.world_stopped) {
1113+
// Free immediately during interpreter shutdown or if the world is
1114+
// stopped.
11151115
free_work_item(ptr);
11161116
return;
11171117
}

0 commit comments

Comments
 (0)