Repository navigation
m3core runtime: describe what ex_frame and ex_stack actually are - #1354
Merged
Merged
Conversation
The names say little (both have frames, a stack and a walker), as Rodney pointed out in discussion #1311. Describe each scheme where the choice between them is made: where the frames live, which constructs push them, how a raise walks them, what ex_stack hands to the C++ unwinder, and what each costs. Fold in the older notes further down the file. Comments only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comments only. As promised in #1311: Rodney pointed out that the names
ex_frameandex_stacksay little, since both schemes have frames, a stack and a walker. This describes each one at the top ofm3-libs/m3core/src/runtime/m3makefile, where the choice between them is made:TRY EXCEPT,TRY FINALLY,LOCK, and a procedure with a restrictiveRAISESclause);RTExFrame.Raisewalks them in two passes;try/catchorinvoke/landingpad, with compiler-generated unwind tables;RAISEas a C++ throw, walked by the C++ runtime's unwinder over the ordinary stack;RTExStackdeciding matches at each landing pad;The older notes further down the file, which covered some of the same ground, are folded in. Jay's point that 32-bit Windows C++ EH is itself frame-based is kept. The file's existing mixed CRLF/LF line endings are left as they were.
🤖 Generated with Claude Code