mirror of https://github.com/python/cpython
parent
1e67b9207c
commit
e54b0c8a4a
|
@ -988,7 +988,7 @@ PyObject_ClearWeakRefs(PyObject *object)
|
||||||
}
|
}
|
||||||
|
|
||||||
list = GET_WEAKREFS_LISTPTR(object);
|
list = GET_WEAKREFS_LISTPTR(object);
|
||||||
if (FT_ATOMIC_LOAD_PTR(list) == NULL) {
|
if (FT_ATOMIC_LOAD_PTR(*list) == NULL) {
|
||||||
// Fast path for the common case
|
// Fast path for the common case
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue