Skip to content

Remove state dependency from exception handling - #487

Open
zherczeg wants to merge 1 commit into
Samsung:mainfrom
zherczeg:exceptions
Open

Remove state dependency from exception handling#487
zherczeg wants to merge 1 commit into
Samsung:mainfrom
zherczeg:exceptions

Conversation

@zherczeg

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
@zherczeg zherczeg changed the title Exceptions Remove state dependency from exception handling Aug 27, 2026
@zherczeg

Copy link
Copy Markdown
Collaborator Author

This is a bigger rework of exception handling. The problem is, that now caught exceptions can be re-thrown any number of times, storing the backtrace as part of the exception is not correct. Instead, the program counter is saved into the state in the few cases which matters from exception handling: calls and throws. Traps cannot be caught, so they don't need backtrace. There are other ways to do this. E.g. cloning the exception for each throw, and update its stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant