Skip to content

GH-128682: Mark two more macros as escaping. #129645

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 4, 2025

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Feb 4, 2025

  • Expand out SETLOCAL so that code generator can see the decrefs.
  • Mark Py_CLEAR as escaping

It is less error prone, and potentially more efficient, to expand out SETLOCAL rather than just not whitelisting it,
Expanding it out means that the code generator can see the explicit operations on the references.

@markshannon markshannon merged commit 96ff4c2 into python:main Feb 4, 2025
73 checks passed
@markshannon markshannon deleted the expand-store-local-ref branch February 4, 2025 14:00
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
Expand out SETLOCAL so that code generator can see the decref. Mark Py_CLEAR as escaping
cmaloney pushed a commit to cmaloney/cpython that referenced this pull request Feb 8, 2025
Expand out SETLOCAL so that code generator can see the decref. Mark Py_CLEAR as escaping
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.

2 participants