mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
LJ_GC64: Fix frame unwinding.
This commit is contained in:
parent
bca5da8849
commit
4a146cac9a
@ -119,7 +119,7 @@ static void *err_unwind(lua_State *L, void *stopcf, int errcode)
|
|||||||
if (errcode) {
|
if (errcode) {
|
||||||
L->base = frame_prevd(frame) + 1;
|
L->base = frame_prevd(frame) + 1;
|
||||||
L->cframe = cframe_prev(cf);
|
L->cframe = cframe_prev(cf);
|
||||||
unwindstack(L, frame);
|
unwindstack(L, frame - LJ_FR2);
|
||||||
} else if (cf != stopcf) {
|
} else if (cf != stopcf) {
|
||||||
cf = cframe_prev(cf);
|
cf = cframe_prev(cf);
|
||||||
frame = frame_prevd(frame);
|
frame = frame_prevd(frame);
|
||||||
@ -144,7 +144,7 @@ static void *err_unwind(lua_State *L, void *stopcf, int errcode)
|
|||||||
if (errcode) {
|
if (errcode) {
|
||||||
L->base = frame_prevd(frame) + 1;
|
L->base = frame_prevd(frame) + 1;
|
||||||
L->cframe = cframe_prev(cf);
|
L->cframe = cframe_prev(cf);
|
||||||
unwindstack(L, frame);
|
unwindstack(L, frame - LJ_FR2);
|
||||||
}
|
}
|
||||||
return cf;
|
return cf;
|
||||||
case FRAME_CONT: /* Continuation frame. */
|
case FRAME_CONT: /* Continuation frame. */
|
||||||
|
Loading…
Reference in New Issue
Block a user