Skip to content

Commit 377855c

Browse files
committed
Port to 3.13
1 parent 1919228 commit 377855c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Objects/typeobject.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,9 +996,15 @@ type_modified_unlocked(PyTypeObject *type)
996996
We don't assign new version tags eagerly, but only as
997997
needed.
998998
*/
999+
#ifdef Py_GIL_DISABLED
9991000
if (_Py_atomic_load_uint_relaxed(type->tp_version_tag) == 0) {
10001001
return;
10011002
}
1003+
#else
1004+
if (type->tp_version_tag == 0) {
1005+
return;
1006+
}
1007+
#endif
10021008
// Cannot modify static builtin types.
10031009
assert((type->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN) == 0);
10041010

0 commit comments

Comments
 (0)