Skip to content

GH-128682: Convert explicit loops closing arrays into DECREF_INPUTS.#128822

Merged
markshannon merged 2 commits intopython:mainfrom
faster-cpython:escaping-decref-2
Jan 14, 2025
Merged

GH-128682: Convert explicit loops closing arrays into DECREF_INPUTS.#128822
markshannon merged 2 commits intopython:mainfrom
faster-cpython:escaping-decref-2

Conversation

@markshannon
Copy link
Copy Markdown
Member

@markshannon markshannon commented Jan 14, 2025

This PR makes the handling of escaping calls in the code generator more robust by:

  • handling array inputs with DECREF_INPUTS
  • Making it explicit that Py_DECREF and Py_XDECREF escape.

@markshannon markshannon merged commit f49a1df into python:main Jan 14, 2025
@markshannon markshannon deleted the escaping-decref-2 branch January 14, 2025 15:11
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