There was an error while loading. Please reload this page.
1 parent 1a234d7 commit 9310c65Copy full SHA for 9310c65
1 file changed
src/vmprof_main.h
@@ -277,8 +277,8 @@ static void sigprof_handler(int sig_nr, siginfo_t* info, void *ucontext)
277
st->stack[0] = GetPC((ucontext_t*)ucontext);
278
depth = get_stack_trace(st->stack+1, MAX_STACK_DEPTH-2, ucontext);
279
depth++; // To account for pc value in stack[0];
280
- st->stack[depth++] = get_current_thread_id();
281
st->depth = depth;
+ st->stack[depth++] = get_current_thread_id();
282
p->data_offset = offsetof(struct prof_stacktrace_s, marker);
283
p->data_size = (depth * sizeof(void *) +
284
sizeof(struct prof_stacktrace_s) -
0 commit comments