mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Use generic trace error for OOM during trace stitching.
Thanks to Sergey Kaplun. #1166
This commit is contained in:
parent
243b7682a5
commit
b8b49bf395
@ -152,6 +152,8 @@ static void recff_stitch(jit_State *J)
|
|||||||
if (errcode) {
|
if (errcode) {
|
||||||
if (errcode == LUA_ERRRUN)
|
if (errcode == LUA_ERRRUN)
|
||||||
copyTV(L, L->top-1, L->top + (1 + LJ_FR2));
|
copyTV(L, L->top-1, L->top + (1 + LJ_FR2));
|
||||||
|
else
|
||||||
|
setintV(L->top-1, (int32_t)LJ_TRERR_RECERR);
|
||||||
lj_err_throw(L, errcode); /* Propagate errors. */
|
lj_err_throw(L, errcode); /* Propagate errors. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user