Stream: git-wasmtime

Topic: wasmtime / PR #4326 Refactor the internals of traps in `w...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 15:31):

alexcrichton opened PR #4326 from refactor-internal-traps to main:

This commit is a small refactoring of wasmtime_runtime::Trap and
various internals. The Trap structure is now a reason plus backtrace,
and the old Trap enum is mostly in TrapReason now. Additionally all
Trap-returning methods of wasmtime_runtime are changed to returning
a TrapCode to indicate that they never capture a backtrace. Finally
the UnwindReason internally now no longer duplicates the trap reasons,
instead only having two variants of "panic" and "trap".

The motivation for this commit is mostly just cleaning up trap internals
and removing the need for methods like
wasmtime_runtime::Trap::insert_backtrace to leave it only happening at
the wasmtime layer.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 17:05):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 17:35):

alexcrichton merged PR #4326.


Last updated: Oct 23 2024 at 20:03 UTC