Skip to content

Commit 0bae25d

Browse files
committed
Reduce diff
1 parent 0bea1f1 commit 0bae25d

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

Include/internal/pycore_opcode_metadata.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3538,10 +3538,13 @@ dummy_func(
35383538
tstate, callable[0], locals,
35393539
arguments, total_args, NULL, frame
35403540
);
3541-
ERROR_IF(new_frame == NULL, error);
3541+
// Manipulate stack directly since we leave using DISPATCH_INLINED().
3542+
SYNC_SP();
35423543
// The frame has stolen all the arguments from the stack,
35433544
// so there is no need to clean them up.
3544-
SYNC_SP();
3545+
if (new_frame == NULL) {
3546+
ERROR_NO_POP();
3547+
}
35453548
frame->return_offset = INSTRUCTION_SIZE;
35463549
DISPATCH_INLINED(new_frame);
35473550
}

Python/generated_cases.c.h

Lines changed: 10 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)