Early reject regex instructions that were already scheduled this step

This commit is contained in:
Maxime Coste 2024-02-12 08:08:16 +11:00
parent e0c7a34bc1
commit 4101e18144

View File

@ -410,6 +410,9 @@ private:
thread.inst = inst.param.jump_target; thread.inst = inst.param.jump_target;
break; break;
case CompiledRegex::Split: case CompiledRegex::Split:
if (instructions[inst.param.split.target].last_step == current_step)
break;
if (thread.saves >= 0) if (thread.saves >= 0)
++m_saves[thread.saves]->refcount; ++m_saves[thread.saves]->refcount;