Skip to content

Commit

Permalink
Remove uncessary locking
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Apr 17, 2024
1 parent 0e32d1a commit fbb9964
Showing 1 changed file with 0 additions and 2 deletions.
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

0 comments on commit fbb9964

Please sign in to comment.