diff options
author | Mike Pall <mike> | 2011-01-23 19:06:19 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-23 19:06:19 +0100 |
commit | 96ef87bdfdc6000e6ae3a5fe5804922885d55c55 (patch) | |
tree | 438bbd05286b91fb34a316476a58c0446bbe3a09 /src | |
parent | ef3b209127237cb49b66d7c88ffcc7f6bf27973f (diff) | |
download | luajit-96ef87bdfdc6000e6ae3a5fe5804922885d55c55.tar.gz luajit-96ef87bdfdc6000e6ae3a5fe5804922885d55c55.tar.bz2 luajit-96ef87bdfdc6000e6ae3a5fe5804922885d55c55.zip |
Clear bytecode penalty cache in jit.flush().
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
274 | } | 274 | } |
275 | J->cur.traceno = 0; | 275 | J->cur.traceno = 0; |
276 | J->freetrace = 0; | 276 | J->freetrace = 0; |
277 | /* Clear penalty cache. */ | ||
278 | memset(J->penalty, 0, sizeof(J->penalty)); | ||
277 | /* Free the whole machine code and invalidate all exit stub groups. */ | 279 | /* Free the whole machine code and invalidate all exit stub groups. */ |
278 | lj_mcode_free(J); | 280 | lj_mcode_free(J); |
279 | memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup)); | 281 | memset(J->exitstubgroup, 0, sizeof(J->exitstubgroup)); |