gh-98831: rewrite RERAISE and CLEANUP_THROW in the instruction definition DSL by iritkatriel · Pull Request #101511 · python/cpython
Conversation
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit df2e964 🤖
If you want to schedule another build, you need to add the :hammer: test-with-buildbots label again.
| PyObject *tb = PyException_GetTraceback(val); | ||
| _PyErr_Restore(tstate, exc, val, tb); | ||
| assert(exc && PyExceptionInstance_Check(exc)); | ||
| Py_INCREF(exc); |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subtle: this is needed because it stays on the stack when we goto exception_unwind, so the latter will POP and DECREF it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters