diff options
author | Mike Pall <mike> | 2021-03-23 00:35:46 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2021-03-23 00:39:50 +0100 |
commit | a32aeadc6878305658fb3939830e6abaef587e40 (patch) | |
tree | 48f3df3a4ca72b1fb7cd628f15b9d21d864bbbc2 /src/lj_state.c | |
parent | ddd0fd8f3754ad83423623655d8b3f8454a7cf1e (diff) | |
download | luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.gz luajit-a32aeadc6878305658fb3939830e6abaef587e40.tar.bz2 luajit-a32aeadc6878305658fb3939830e6abaef587e40.zip |
Handle on-trace OOM errors from helper functions.
Diffstat (limited to 'src/lj_state.c')
-rw-r--r-- | src/lj_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_state.c b/src/lj_state.c index 9585c18a..e87b945a 100644 --- a/src/lj_state.c +++ b/src/lj_state.c | |||
@@ -156,6 +156,7 @@ static TValue *cpluaopen(lua_State *L, lua_CFunction dummy, void *ud) | |||
156 | fixstring(lj_err_str(L, LJ_ERR_ERRMEM)); /* Preallocate memory error msg. */ | 156 | fixstring(lj_err_str(L, LJ_ERR_ERRMEM)); /* Preallocate memory error msg. */ |
157 | g->gc.threshold = 4*g->gc.total; | 157 | g->gc.threshold = 4*g->gc.total; |
158 | lj_trace_initstate(g); | 158 | lj_trace_initstate(g); |
159 | lj_err_verify(); | ||
159 | return NULL; | 160 | return NULL; |
160 | } | 161 | } |
161 | 162 | ||