Commit c8bb4af
committed
Fix end-of-stack native resume when skip_native_resume is set
When skip_native_resume is true but jit_detected is false (PC not in JIT
region at sample time), the end-of-stack check fell through to
PROG_UNWIND_NATIVE. The native unwinder could then encounter the JIT
anonymous mapping and re-enter the Ruby unwinder, pushing a JIT frame
in the wrong stack position.
Check skip_native_resume alongside jit_detected at end-of-stack to
prevent resuming native unwinding when the flag is set.1 parent 477d66d commit c8bb4af
File tree
3 files changed
+2
-1
lines changed- support/ebpf
3 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments