Commit de0e2ee
committed
Fix issue with
Fix a bug in `_CREATE_INIT_FRAME` where the frame is pushed to the stack on failure.
`_CREATE_INIT_FRAME` pushes a pointer to the new frame onto the stack for consumption
by the next uop. When pushing the frame fails, we do not want to push the result (NULL)
to the stack because it is not a valid stackref and will be exposed to the generic
error handling code in the interpreter loop. This worked in default builds because
`PyStackRef_NULL` is `NULL` in default builds, which is not the case in free-threaded
builds._CREATE_INIT_FRAME
1 parent 3e8d85e commit de0e2ee
File tree
4 files changed
+33
-12
lines changed- Lib/test
- Python
4 files changed
+33
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
503 | 508 | | |
504 | 509 | | |
505 | 510 | | |
| |||
547 | 552 | | |
548 | 553 | | |
549 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
550 | 569 | | |
551 | 570 | | |
552 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3744 | 3744 | | |
3745 | 3745 | | |
3746 | 3746 | | |
3747 | | - | |
| 3747 | + | |
3748 | 3748 | | |
3749 | 3749 | | |
3750 | | - | |
| 3750 | + | |
3751 | 3751 | | |
3752 | 3752 | | |
3753 | 3753 | | |
| 3754 | + | |
3754 | 3755 | | |
3755 | 3756 | | |
3756 | 3757 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments