mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Clear bytecode penalty cache in jit.flush().
This commit is contained in:
parent
ef3b209127
commit
96ef87bdfd
@ -274,6 +274,8 @@ int lj_trace_flushall(lua_State *L)
|
|||||||
}
|
}
|
||||||
J->cur.traceno = 0;
|
J->cur.traceno = 0;
|
||||||
J->freetrace = 0;
|
J->freetrace = 0;
|
||||||
|
/* Clear penalty cache. */
|
||||||
|
memset(J->penalty, 0, sizeof(J->penalty));
|
||||||
/* Free the whole machine code and invalidate all exit stub groups. */
|
/* Free the whole machine code and invalidate all exit stub groups. */
|
||||||
lj_mcode_free(J);
|
lj_mcode_free(J);
|
||||||
memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup));
|
memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup));
|
||||||
|
Loading…
Reference in New Issue
Block a user