8000 Remove uncessary locking · python/cpython@fbb9964 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbb9964

Browse files
committed
Remove uncessary locking
1 parent 0e32d1a commit fbb9964

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Objects/listobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,12 +1287,10 @@ list_extend_set(PyListObject *self, PySetObject *other)
12871287
Py_hash_t hash;
12881288
PyObject *key;
12891289
PyObject **dest = self->ob_item + m;
1290-
Py_BEGIN_CRITICAL_SECTION(other);
12911290
while (_PySet_NextEntry((PyObject *)other, &setpos, &key, &hash)) {
12921291
FT_ATOMIC_STORE_PTR_RELEASE(* 5820 dest, key);
12931292
dest++;
12941293
}
1295-
Py_END_CRITICAL_SECTION();
12961294
Py_SET_SIZE(self, m + n);
12971295
return 0;
12981296
}

0 commit comments

Comments
 (0)
0