Skip to content

Commit 8f7e4e1

Browse files
authored
Fix duplicated native stacks with perf_events (async-profiler#1544)
1 parent 88b7ba3 commit 8f7e4e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/profiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,10 +1184,10 @@ Error Profiler::start(Arguments& args, bool reset) {
11841184
if (_cstack == CSTACK_DEFAULT) {
11851185
if (VMStructs::hasStackStructs()) {
11861186
// Use VMStructs by default when possible
1187-
_cstack = CSTACK_VM;
1187+
_cstack = args._cstack = CSTACK_VM;
11881188
} else if (VM::isOpenJ9() && DWARF_SUPPORTED) {
11891189
// OpenJ9 libs are compiled with frame pointers omitted
1190-
_cstack = CSTACK_DWARF;
1190+
_cstack = args._cstack = CSTACK_DWARF;
11911191
}
11921192
}
11931193

0 commit comments

Comments
 (0)