@@ -128,7 +128,7 @@ public static void waitForInitialization(RubyContext context, RubyFiber fiber, N
128
128
if (context .getEnv ().getContext ().isEntered ()) {
129
129
context .getThreadManager ().runUntilResultKeepStatus (currentNode , blockingAction );
130
130
} else {
131
- ThreadManager .retryWhileInterrupted (blockingAction );
131
+ context . getThreadManager () .retryWhileInterrupted (blockingAction );
132
132
}
133
133
134
134
final Throwable uncaughtException = fiber .uncaughtException ;
@@ -230,7 +230,7 @@ private void addToMessageQueue(RubyFiber fiber, FiberMessage message) {
230
230
@ TruffleBoundary
231
231
private FiberMessage waitMessage (RubyFiber fiber ) {
232
232
assert !context .getEnv ().getContext ().isEntered () : "should have left context while waiting fiber message" ;
233
- return ThreadManager .retryWhileInterrupted (fiber .messageQueue ::take );
233
+ return context . getThreadManager () .retryWhileInterrupted (fiber .messageQueue ::take );
234
234
}
235
235
236
236
@ TruffleBoundary
@@ -330,7 +330,7 @@ public void killOtherFibers() {
330
330
final TruffleContext truffleContext = context .getEnv ().getContext ();
331
331
context .getThreadManager ().leaveAndEnter (truffleContext , null , () -> {
332
332
doKillOtherFibers ();
333
- return null ;
333
+ return BlockingAction . SUCCESS ;
334
334
}, true );
335
335
}
336
336
@@ -341,7 +341,7 @@ private void doKillOtherFibers() {
341
341
342
342
// Wait for the Fiber to finish so we only run one Fiber at a time
343
343
final CountDownLatch finishedLatch = fiber .finishedLatch ;
344
- ThreadManager .retryWhileInterrupted (() -> {
344
+ context . getThreadManager () .retryWhileInterrupted (() -> {
345
345
finishedLatch .await ();
346
346
return BlockingAction .SUCCESS ;
347
347
});
0 commit comments