@@ -705,7 +705,7 @@ static PyObject *
705705gen_get_name (PyObject * self , void * Py_UNUSED (ignored ))
706706{
707707 PyGenObject * op = _PyGen_CAST (self );
708- PyObject * name = FT_ATOMIC_LOAD_PTR_RELAXED (op -> gi_name );
708+ PyObject * name = FT_ATOMIC_LOAD_PTR_ACQUIRE (op -> gi_name );
709709 return Py_NewRef (name );
710710}
711711
@@ -721,7 +721,7 @@ gen_set_name(PyObject *self, PyObject *value, void *Py_UNUSED(ignored))
721721 return -1 ;
722722 }
723723 Py_BEGIN_CRITICAL_SECTION (self );
724- // gh-133931 : To prevent use-after-free from other threads that reference
724+ // gh-133980 : To prevent use-after-free from other threads that reference
725725 // the gi_name.
726726 _PyObject_XSetRefDelayed (& op -> gi_name , Py_NewRef (value ));
727727 Py_END_CRITICAL_SECTION ();
@@ -732,7 +732,7 @@ static PyObject *
732732gen_get_qualname (PyObject * self , void * Py_UNUSED (ignored ))
733733{
734734 PyGenObject * op = _PyGen_CAST (self );
735- PyObject * qualname = FT_ATOMIC_LOAD_PTR_RELAXED (op -> gi_qualname );
735+ PyObject * qualname = FT_ATOMIC_LOAD_PTR_ACQUIRE (op -> gi_qualname );
736736 return Py_NewRef (qualname );
737737}
738738
@@ -748,7 +748,7 @@ gen_set_qualname(PyObject *self, PyObject *value, void *Py_UNUSED(ignored))
748748 return -1 ;
749749 }
750750 Py_BEGIN_CRITICAL_SECTION (self );
751- // gh-133931 : To prevent use-after-free from other threads that reference
751+ // gh-133980 : To prevent use-after-free from other threads that reference
752752 // the gi_qualname.
753753 _PyObject_XSetRefDelayed (& op -> gi_qualname , Py_NewRef (value ));
754754 Py_END_CRITICAL_SECTION ();
0 commit comments