Skip to content

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

Merged
markshannon merged 1 commit intopython:mainfrom
faster-cpython:expand-store-local-ref
Feb 4, 2025
Merged

GH-128682: Mark two more macros as escaping.#129645
markshannon merged 1 commit intopython:mainfrom
faster-cpython:expand-store-local-ref

Conversation

@markshannon
Copy link
Copy Markdown
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
@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