File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ _Py_TryIncRefShared(PyObject *op)
430430
431431/* Tries to incref the object op and ensures that *src still points to it. */
432432static inline int
433- _Py_TryAcquireObject (PyObject * * src , PyObject * op )
433+ _Py_TryIncref (PyObject * * src , PyObject * op )
434434{
435435 if (_Py_TryIncrefFast (op )) {
436436 return 1 ;
@@ -456,7 +456,7 @@ _Py_XGetRef(PyObject **ptr)
456456 if (value == NULL ) {
457457 return value ;
458458 }
459- if (_Py_TryAcquireObject (ptr , value )) {
459+ if (_Py_TryIncref (ptr , value )) {
460460 return value ;
461461 }
462462 }
@@ -465,13 +465,13 @@ _Py_XGetRef(PyObject **ptr)
465465/* Attempts to loads and increfs an object from ptr. Returns NULL
466466 on failure, which may be due to a NULL value or a concurrent update. */
467467static inline PyObject *
468- _Py_TryXFetchRef (PyObject * * ptr )
468+ _Py_TryXGetRef (PyObject * * ptr )
469469{
470470 PyObject * value = _Py_atomic_load_ptr (ptr );
471471 if (value == NULL ) {
472472 return value ;
473473 }
474- if (_Py_TryAcquireObject (ptr , value )) {
474+ if (_Py_TryIncref (ptr , value )) {
475475 return value ;
476476 }
477477 return NULL ;
@@ -499,7 +499,6 @@ _Py_NewRefWithLock(PyObject *op)
499499 return op ;
500500 }
501501 }
502- return op ;
503502}
504503
505504static inline PyObject *
You can’t perform that action at this time.
0 commit comments