Skip to content

Commit eadb23f

Browse files
committed
Missing thread poll in body interp
1 parent 260e182 commit eadb23f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/org/jruby/ir/interpreter/BodyInterpreterEngine.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ public IRubyObject interpret(ThreadContext context, IRubyObject self, Interprete
205205
}
206206
break;
207207
}
208+
case THREAD_POLL:
209+
if (IRRuntimeHelpers.inProfileMode()) Profiler.clockTick();
210+
context.callThreadPoll();
211+
break;
208212
default:
209213
if (instr.getOperation().opClass == OpClass.BRANCH_OP) {
210214
ipc = instr.interpretAndGetNewIPC(context, currDynScope, currScope, self, temp, ipc);

0 commit comments

Comments
 (0)