8000 bpo-39542: Simplify _Py_NewReference() by vstinner · Pull Request #18332 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-39542: Simplify _Py_NewReferen 8000 ce() #18332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2020
Merged

bpo-39542: Simplify _Py_NewReference() #18332

merged 1 commit into from
Feb 3, 2020

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Feb 3, 2020
  • 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 in object.c: unify the two
    implementations in object.h inline function.
  • Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed.

https://bugs.python.org/issue39542

* 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 in object.c: unify the two
  implementations in object.h inline function.
* Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0