Skip to content
Merged
Prev Previous commit
Next Next commit
Remove unneeded atomic load.
The function is only used in with-GIL builds.
  • Loading branch information
nascheme committed Dec 18, 2024
commit 4981652bcf3ef2e31c0e7d8c415d1c306d34dc8f
2 changes: 1 addition & 1 deletion Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ function_get_version(PyObject *o, int opcode)
static uint32_t
type_get_version(PyTypeObject *t, int opcode)
{
uint32_t version = FT_ATOMIC_LOAD_UINT_RELAXED(t->tp_version_tag);
uint32_t version = t->tp_version_tag;
if (version == 0) {
SPECIALIZATION_FAIL(opcode, SPEC_FAIL_OUT_OF_VERSIONS);
return 0;
Expand Down