aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-05 11:00:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-05 11:00:28 -0300
commit2bfa13e520e53210b96ead88f49a9ca20c5a5d18 (patch)
treeef9c505f3ef9f6008d0bf993f2ed03fa04faac0e /lvm.c
parente500892e18e994781760819e33098322728796e8 (diff)
downloadlua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.tar.gz
lua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.tar.bz2
lua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.zip
Fixed some bugs around stack reallocation
Long time without using HARDSTACKTESTS...
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lvm.c b/lvm.c
index d6c05bbd..e9b1dcdd 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1150,6 +1150,8 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
1150 Instruction i; /* instruction being executed */ 1150 Instruction i; /* instruction being executed */
1151 StkId ra; /* instruction's A register */ 1151 StkId ra; /* instruction's A register */
1152 vmfetch(); 1152 vmfetch();
1153// low-level line tracing for debugging Lua
1154// printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p)));
1153 lua_assert(base == ci->func + 1); 1155 lua_assert(base == ci->func + 1);
1154 lua_assert(base <= L->top && L->top < L->stack_last); 1156 lua_assert(base <= L->top && L->top < L->stack_last);
1155 /* invalidate top for instructions not expecting it */ 1157 /* invalidate top for instructions not expecting it */