aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_err.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_err.c b/src/lj_err.c
index a497ab11..3ee70b86 100644
--- a/src/lj_err.c
+++ b/src/lj_err.c
@@ -777,6 +777,10 @@ LJ_NOINLINE void lj_err_mem(lua_State *L)
777{ 777{
778 if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */ 778 if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */
779 lj_vm_unwind_c(L->cframe, LUA_ERRMEM); 779 lj_vm_unwind_c(L->cframe, LUA_ERRMEM);
780 if (LJ_HASJIT) {
781 TValue *base = tvref(G(L)->jit_base);
782 if (base) L->base = base;
783 }
780 if (curr_funcisL(L)) L->top = curr_topL(L); 784 if (curr_funcisL(L)) L->top = curr_topL(L);
781 setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM)); 785 setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM));
782 lj_err_throw(L, LUA_ERRMEM); 786 lj_err_throw(L, LUA_ERRMEM);