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 17, 2021
1 parent 852fcad commit 8a4e93c
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 8a4e93c

Please sign in to comment.