mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Limit number of parent links handled by backend.
This commit is contained in:
parent
24fa85760c
commit
53e28d7678
@ -1576,6 +1576,8 @@ static void asm_setup_regsp(ASMState *as)
|
||||
if (as->parent) {
|
||||
uint16_t *p;
|
||||
lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir);
|
||||
if (lastir - ir > LJ_MAX_JSLOTS)
|
||||
lj_trace_err(as->J, LJ_TRERR_NYICOAL);
|
||||
as->stopins = (IRRef)((lastir-1) - as->ir);
|
||||
for (p = as->parentmap; ir < lastir; ir++) {
|
||||
RegSP rs = ir->prev;
|
||||
|
Loading…
Reference in New Issue
Block a user