Skip to content

Commit 6c0aff4

Browse files
committed
Increase number of reserved frames
1 parent b55cb7c commit 6c0aff4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/profiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ int Profiler::getJavaTraceAsync(void* ucontext, ASGCT_CallFrame* frames, int max
556556

557557
int Profiler::getJavaTraceJvmti(jvmtiFrameInfo* jvmti_frames, ASGCT_CallFrame* frames, int start_depth, int max_depth) {
558558
int num_frames = 0;
559-
if (VM::jvmti()->GetStackTrace(NULL, start_depth, _max_stack_depth, jvmti_frames, &num_frames) == 0 && num_frames > 0) {
559+
if (VM::jvmti()->GetStackTrace(NULL, start_depth, max_depth, jvmti_frames, &num_frames) == 0 && num_frames > 0) {
560560
// Convert to AsyncGetCallTrace format.
561561
// Note: jvmti_frames and frames may overlap.
562562
for (int i = 0; i < num_frames; i++) {

src/profiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828

2929
const int MAX_NATIVE_FRAMES = 128;
30-
const int RESERVED_FRAMES = 4;
30+
const int RESERVED_FRAMES = 10; // for synthetic frames
3131
const int CONCURRENCY_LEVEL = 16;
3232

3333

0 commit comments

Comments
 (0)