Commit b22403e
committed
Fix bug pushing frame in _PY_FRAME_KW
`_PY_FRAME_KW` 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. This works in the default build because `PyStackRef_NULL`
and `NULL` are the same value, so the `PyStackRef_XCLOSE()` in the error
handler ignores it. In the free-threaded build the values are not the same;
`PyStackRef_XCLOSE()` will attempt to decref a null pointer.1 parent e56da80 commit b22403e
3 files changed
+18
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4311 | 4311 | | |
4312 | 4312 | | |
4313 | 4313 | | |
4314 | | - | |
| 4314 | + | |
4315 | 4315 | | |
4316 | 4316 | | |
4317 | 4317 | | |
4318 | 4318 | | |
4319 | 4319 | | |
4320 | 4320 | | |
4321 | 4321 | | |
4322 | | - | |
| 4322 | + | |
4323 | 4323 | | |
4324 | 4324 | | |
| 4325 | + | |
4325 | 4326 | | |
4326 | 4327 | | |
4327 | 4328 | | |
| |||
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