Skip to content

Commit

Permalink
lj_auditlog.c: Log GCtrace->irmcodesz (IR-mcode mapping)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Apr 24, 2018
1 parent 486f720 commit 44fbf8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lj_auditlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ static void log_GCtrace(GCtrace *T)
log_mem("SnapShot[]", T->snap, T->nsnap * sizeof(*T->snap));
log_mem("SnapEntry[]", T->snapmap, T->nsnapmap * sizeof(*T->snapmap));
log_mem("IRIns[]", &T->ir[T->nk], (T->nins - T->nk + 1) * sizeof(IRIns));
log_mem("uint16_t[]", &T->szirmcode, (T->nins - REF_BIAS - 1) * sizeof(uint16_t));
for (ref = T->nk; ref < REF_TRUE; ref++) {
IRIns *ir = &T->ir[ref];
if (ir->o == IR_KGC) {
Expand Down Expand Up @@ -220,8 +221,8 @@ static void log_GCobj(GCobj *o)
void lj_auditlog_trace_stop(jit_State *J, GCtrace *T)
{
if (ensure_log_started()) {
log_jit_State(J);
log_GCtrace(T);
log_jit_State(J);
log_event("trace_stop", 2);
str_16("GCtrace"); /* = */ uint_64((uint64_t)T);
str_16("jit_State"); /* = */ uint_64((uint64_t)J);
Expand Down

0 comments on commit 44fbf8e

Please sign in to comment.