Browse Source
bpo-39542: Simplify _Py_NewReference() (GH-18332)
bpo-39542: Simplify _Py_NewReference() (GH-18332)
* Remove _Py_INC_REFTOTAL and _Py_DEC_REFTOTAL macros: modify directly _Py_RefTotal. * _Py_ForgetReference() is no longer defined if the Py_TRACE_REFS macro is not defined. * Remove _Py_NewReference() implementation from object.c: unify the two implementations in object.h inline function. * Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed.pull/18344/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 58 deletions
-
42Include/object.h
-
8Modules/_testcapimodule.c
-
6Objects/bytesobject.c
-
26Objects/dictobject.c
-
21Objects/object.c
-
9Objects/tupleobject.c
-
6Objects/unicodeobject.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue