Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove uncessary locking
  • Loading branch information
corona10 committed Apr 17, 2024
commit fbb996478e3d6d2febc4e9ff16bdf4cbe4bbd816
2 changes: 0 additions & 2 deletions Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,12 +1287,10 @@ list_extend_set(PyListObject *self, PySetObject *other)
Py_hash_t hash;
PyObject *key;
PyObject **dest = self->ob_item + m;
Py_BEGIN_CRITICAL_SECTION(other);
while (_PySet_NextEntry((PyObject *)other, &setpos, &key, &hash)) {
FT_ATOMIC_STORE_PTR_RELEASE(*dest, key);
dest++;
}
Py_END_CRITICAL_SECTION();
Py_SET_SIZE(self, m + n);
return 0;
}
Expand Down