summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2012-11-14 21:54:27 +0100
committerMike Pall <mike>2012-11-14 21:54:27 +0100
commitc77a9e4c655ea4732950a8fb7c33680350857b34 (patch)
tree4cd1aed59403ec5ee17ccddff2d9b7c4f8cfb05b
parent32fa68d3e88426d0230c753820ef79bc139b309e (diff)
downloadluajit-c77a9e4c655ea4732950a8fb7c33680350857b34.tar.gz
luajit-c77a9e4c655ea4732950a8fb7c33680350857b34.tar.bz2
luajit-c77a9e4c655ea4732950a8fb7c33680350857b34.zip
Don't clear frame for out-of-memory error.
-rw-r--r--src/lj_err.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lj_err.c b/src/lj_err.c
index 60d8fe12..fd3545e3 100644
--- a/src/lj_err.c
+++ b/src/lj_err.c
@@ -485,7 +485,6 @@ LJ_NOINLINE void lj_err_mem(lua_State *L)
485{ 485{
486 if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */ 486 if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */
487 lj_vm_unwind_c(L->cframe, LUA_ERRMEM); 487 lj_vm_unwind_c(L->cframe, LUA_ERRMEM);
488 L->top = L->base;
489 setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM)); 488 setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM));
490 lj_err_throw(L, LUA_ERRMEM); 489 lj_err_throw(L, LUA_ERRMEM);
491} 490}