Skip to content

Commit

Permalink
lj_trace.c: Reset hotcount table after flush
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego authored and alexandergall committed Jan 8, 2018
1 parent 0a90764 commit c685d8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/luajit/src/lj_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ int lj_trace_flushall(lua_State *L)
J->freetrace = 0;
/* Clear penalty cache. */
memset(J->penalty, 0, sizeof(J->penalty));
/* Reset hotcounts. */
lj_dispatch_init_hotcount(J2G(J));
/* Free the whole machine code and invalidate all exit stub groups. */
lj_mcode_free(J);
memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup));
Expand Down

0 comments on commit c685d8b

Please sign in to comment.