Skip to content

Commit 41e54e1

Browse files
committed
Improve function name.
The apply_slot_updates_world_stopped() name implies that the world is already stopped, based on convention. Rename for clarity.
1 parent c1f3ed5 commit 41e54e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/typeobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@ apply_slot_updates(slot_update_t *updates)
38393839
}
38403840

38413841
static void
3842-
apply_slot_updates_world_stopped(slot_update_t *updates)
3842+
apply_type_slot_updates(slot_update_t *updates)
38433843
{
38443844
// This must be done carefully to avoid data races and deadlocks. We
38453845
// have just updated the type __dict__, while holding TYPE_LOCK. We have
@@ -6402,7 +6402,7 @@ update_slot_after_setattr(PyTypeObject *type, PyObject *name)
64026402
return -1;
64036403
}
64046404
if (queued_updates.head->n > 0) {
6405-
apply_slot_updates_world_stopped(&queued_updates);
6405+
apply_type_slot_updates(&queued_updates);
64066406
ASSERT_TYPE_LOCK_HELD();
64076407
// should never allocate another chunk
64086408
assert(chunk.prev == NULL);
@@ -11718,7 +11718,7 @@ update_all_slots(PyTypeObject* type)
1171811718
}
1171911719
}
1172011720
if (queued_updates.head != NULL) {
11721-
apply_slot_updates_world_stopped(&queued_updates);
11721+
apply_type_slot_updates(&queued_updates);
1172211722
ASSERT_TYPE_LOCK_HELD();
1172311723
slot_update_free_chunks(&queued_updates);
1172411724
}

0 commit comments

Comments
 (0)