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 16, 2021
1 parent 095b5d1 commit 1351f35
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 1351f35

Please sign in to comment.