Skip to content

Commit

Permalink
fibers: use a breakpoint instruction after the final call in wasmtime…
Browse files Browse the repository at this point in the history
…_fiber_start
  • Loading branch information
bnjbvr committed Mar 15, 2021
1 parent 1e9d608 commit 741dc81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/fiber/src/arch/aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ FUNCTION(wasmtime_fiber_start):
// ... and then we call the function! Note that this is a function call so
// our frame stays on the stack to backtrace through.
blr x20
// .. technically we shouldn't get here, and I would like to write in an
// instruction which just aborts, but I don't know such an instruction in
// aarch64 land.
// Unreachable, here for safety. This should help catch unexpected behaviors.
// Use a noticeable payload so one can grep for it in the codebase.
brk 0xf1b3
.cfi_endproc
SIZE(wasmtime_fiber_start)

Expand Down

0 comments on commit 741dc81

Please sign in to comment.