Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d5fe7a1

Browse filesBrowse files
committed
More renames
1 parent 231c107 commit d5fe7a1
Copy full SHA for d5fe7a1

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

‎Include/internal/pycore_object.h

Copy file name to clipboardExpand all lines: Include/internal/pycore_object.h
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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. */
432432
static 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;
@@ -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. */
467467
static 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

505504
static inline PyObject *

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.