diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-24 20:59:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 20:59:51 (GMT) |
commit | 3923639a77656915c3499b0283a45da727308f2a (patch) | |
tree | 73b1df3257b6a194952faef80075539be18d9126 /Objects/object.c | |
parent | 5bf7165e591f2e7502672cc591cea480a5b91a8f (diff) | |
download | cpython-3923639a77656915c3499b0283a45da727308f2a.zip cpython-3923639a77656915c3499b0283a45da727308f2a.tar.gz cpython-3923639a77656915c3499b0283a45da727308f2a.tar.bz2 |
[3.12] gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (GH-107193) (#107199)
gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (GH-107193)
* Rename _Py_IncRefTotal_DO_NOT_USE_THIS() to _Py_INCREF_IncRefTotal()
* Rename _Py_DecRefTotal_DO_NOT_USE_THIS() to _Py_DECREF_DecRefTotal()
* Remove temporary _Py_INC_REFTOTAL() and _Py_DEC_REFTOTAL() macros
(cherry picked from commit 8ebc9fc321ba1eeb3282c2170f351c54956893e6)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index b8bdf45..6a73c35 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -206,14 +206,14 @@ _Py_NegativeRefcount(const char *filename, int lineno, PyObject *op) /* This is used strictly by Py_INCREF(). */ void -_Py_IncRefTotal_DO_NOT_USE_THIS(void) +_Py_INCREF_IncRefTotal(void) { reftotal_increment(_PyInterpreterState_GET()); } /* This is used strictly by Py_DECREF(). */ void -_Py_DecRefTotal_DO_NOT_USE_THIS(void) +_Py_DECREF_DecRefTotal(void) { reftotal_decrement(_PyInterpreterState_GET()); } |