Skip to content

Commit 94294e9

Browse files
committed
Remove unneeded atomic load.
The function is only used in with-GIL builds.
1 parent 4c484ab commit 94294e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ function_get_version(PyObject *o, int opcode)
17741774
static uint32_t
17751775
type_get_version(PyTypeObject *t, int opcode)
17761776
{
1777-
uint32_t version = FT_ATOMIC_LOAD_UINT_RELAXED(t->tp_version_tag);
1777+
uint32_t version = t->tp_version_tag;
17781778
if (version == 0) {
17791779
SPECIALIZATION_FAIL(opcode, SPEC_FAIL_OUT_OF_VERSIONS);
17801780
return 0;

0 commit comments

Comments
 (0)