diff options
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)); |
