From: Mike Pall Date: Sun, 23 Jan 2011 18:06:19 +0000 (+0100) Subject: Clear bytecode penalty cache in jit.flush(). X-Git-Tag: v2.0.0-beta6~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96ef87bdfdc6000e6ae3a5fe5804922885d55c55;p=thirdparty%2FLuaJIT.git Clear bytecode penalty cache in jit.flush(). --- diff --git a/src/lj_trace.c b/src/lj_trace.c index 612a41bc..cc42dffe 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c @@ -274,6 +274,8 @@ int lj_trace_flushall(lua_State *L) } J->cur.traceno = 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. */ lj_mcode_free(J); memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup));