Skip to content

Conversation

@markshannon
Copy link
Member

@markshannonmarkshannon commented Aug 5, 2024

A preparatory refactoring for deferred reference counting.

We expect the code generator to spill the stack pointer and any necessary values to the stack around escaping calls.
But this is tricky if the call is embedded in a control flow statement.

This PR moves the calls out of control flow statements.
Changes code like if (escaping_call(...)){ into int err = escaping_call(...); if (err){

@markshannon
Copy link
MemberAuthor

The 3 failures are know failures: Network issues on the emulated platforms and a hypothesis issue.

@markshannonmarkshannon merged commit a8be8fc into python:mainAug 6, 2024
@markshannonmarkshannon deleted the move-escaping-calls-out-of-conditions branch August 6, 2024 10:14
brandtbucher pushed a commit to brandtbucher/cpython that referenced this pull request Aug 7, 2024
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@markshannon@iritkatriel