aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2024-04-18 23:57:53 +0200
committerMike Pall <mike>2024-04-18 23:57:53 +0200
commitb8b49bf3954b23e32e34187a6ada00021c26e172 (patch)
tree2dafa87406fd7434be3fcea448600e1cf23058dc
parent243b7682a521324c7891090acfc3011ab17dcb18 (diff)
downloadluajit-b8b49bf3954b23e32e34187a6ada00021c26e172.tar.gz
luajit-b8b49bf3954b23e32e34187a6ada00021c26e172.tar.bz2
luajit-b8b49bf3954b23e32e34187a6ada00021c26e172.zip
Use generic trace error for OOM during trace stitching.
Thanks to Sergey Kaplun. #1166
-rw-r--r--src/lj_ffrecord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c
index 03d0e6ec..923824d9 100644
--- a/src/lj_ffrecord.c
+++ b/src/lj_ffrecord.c
@@ -152,6 +152,8 @@ static void recff_stitch(jit_State *J)
152 if (errcode) { 152 if (errcode) {
153 if (errcode == LUA_ERRRUN) 153 if (errcode == LUA_ERRRUN)
154 copyTV(L, L->top-1, L->top + (1 + LJ_FR2)); 154 copyTV(L, L->top-1, L->top + (1 + LJ_FR2));
155 else
156 setintV(L->top-1, (int32_t)LJ_TRERR_RECERR);
155 lj_err_throw(L, errcode); /* Propagate errors. */ 157 lj_err_throw(L, errcode); /* Propagate errors. */
156 } 158 }
157} 159}