Jit: 2nd attempt at fix for [Issue 2302318] Crash during spin-on-suspend
Logic on the 1st attempt was a little off, preventing some invokes from
getting chaining cells.
diff --git a/vm/interp/Jit.c b/vm/interp/Jit.c
index c79c4bc..2a5d9ef 100644
--- a/vm/interp/Jit.c
+++ b/vm/interp/Jit.c
@@ -669,7 +669,7 @@
#endif
}
/* Break on throw or self-loop */
- if (decInsn.opCode == OP_THROW) {
+ if ((decInsn.opCode == OP_THROW) || (lastPC == pc)){
interpState->jitState = kJitTSelectEnd;
}
if (interpState->totalTraceLen >= JIT_MAX_TRACE_LEN) {