Skip to content

Commit

Permalink
fixup! lj_auditlog: Improve logging of trace stop/abort
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Nov 29, 2017
1 parent 238c698 commit b29101e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/lj_auditlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ void lj_auditlog_trace_stop(jit_State *J, GCtrace *T)
void lj_auditlog_trace_abort(jit_State *J, TraceError e) {
ensure_log_open();
log_jit_State(J);
log_GCtrace(&J->cur);
log_event("trace_abort", 2);
str_16("TraceError"); /* = */ uint_64(e);
str_16("jit_State"); /* = */ uint_64((uint64_t)J);
Expand Down
3 changes: 0 additions & 3 deletions src/lj_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ void lj_trace_err(jit_State *J, TraceError e)
{
setnilV(&J->errinfo); /* No error info. */
setintV(J->L->top++, (int32_t)e);
lj_auditlog_trace_abort(J, e);
lj_err_throw(J->L, LUA_ERRRUN);
}

/* Synchronous abort with error message and error info. */
void lj_trace_err_info(jit_State *J, TraceError e)
{
setintV(J->L->top++, (int32_t)e);
lj_auditlog_trace_abort(J, e);
lj_err_throw(J->L, LUA_ERRRUN);
}

Expand Down Expand Up @@ -526,7 +524,6 @@ static int trace_abort(jit_State *J)
J->cur.traceno = 0;
}
L->top--; /* Remove error object */
lj_auditlog_trace_abort(J, e);
if (e == LJ_TRERR_DOWNREC)
return trace_downrec(J);
else if (e == LJ_TRERR_MCODEAL)
Expand Down

0 comments on commit b29101e

Please sign in to comment.