Report parent for stitched traces in trace start vmevent

This commit is contained in:
Nick Zavaritsky 2016-11-06 17:33:21 +03:00
parent 716f2daef8
commit c2644d4c2e

View File

@ -446,6 +446,13 @@ static void trace_start(jit_State *J)
if (J->parent) {
setintV(L->top++, J->parent);
setintV(L->top++, J->exitno);
} else {
BCOp op = bc_op(*J->pc);
if (op == BC_CALLM || op == BC_CALL || op == BC_ITERC) {
/* stitching, parent stored as exitno */
setintV(L->top++, J->exitno);
setintV(L->top++, 0);
}
}
);
lj_record_setup(J);