Skip to content

Commit 1e412cf

Browse files
committed
chore: use frame-pointer unwinding with Java
1 parent 657ed4d commit 1e412cf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/executor/wall_time/perf

src/executor/wall_time/perf/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ impl PerfRunner {
9696
// Infer the unwinding mode from the benchmark cmd
9797
let (cg_mode, stack_size) = if let Some(mode) = config.perf_unwinding_mode {
9898
(mode, None)
99+
} else if config.command.contains("gradle") | config.command.contains("java") | config.command.contains("maven") {
100+
// In Java, we must use FP unwinding otherwise we'll have broken call stacks.
101+
(UnwindingMode::FramePointer, None)
99102
} else if config.command.contains("cargo") {
100103
(UnwindingMode::Dwarf, None)
101104
} else if config.command.contains("pytest")

0 commit comments

Comments
 (0)