32
32
import org .truffleruby .RubyLanguage ;
33
33
import org .truffleruby .annotations .SuppressFBWarnings ;
34
34
import org .truffleruby .collections .ConcurrentWeakSet ;
35
- import org .truffleruby .core .DummyNode ;
36
35
import org .truffleruby .core .InterruptMode ;
37
36
import org .truffleruby .core .basicobject .BasicObjectNodes .ObjectIDNode ;
38
37
import org .truffleruby .core .exception .RubyException ;
@@ -618,7 +617,7 @@ public void killAndWaitOtherThreads() {
618
617
// Wait and join all Java threads we created
619
618
for (Thread thread : rubyManagedThreads ) {
620
619
if (thread != Thread .currentThread ()) {
621
- runUntilResultKeepStatus (DummyNode . INSTANCE , t -> {
620
+ runUntilResultKeepStatus (null , t -> {
622
621
t .join ();
623
622
return BlockingAction .SUCCESS ;
624
623
}, thread );
@@ -634,8 +633,7 @@ private void doKillOtherThreads() {
634
633
SafepointPredicate predicate = (context , thread , action ) -> Thread .currentThread () != initiatingJavaThread &&
635
634
language .getCurrentFiber () == thread .getCurrentFiber ();
636
635
637
- context .getSafepointManager ().pauseAllThreadsAndExecute (
638
- DummyNode .INSTANCE ,
636
+ context .getSafepointManager ().pauseAllThreadsAndExecute (null ,
639
637
new SafepointAction ("kill other threads for shutdown" , predicate , true , true ) {
640
638
@ Override
641
639
public void run (RubyThread rubyThread , Node currentNode ) {
0 commit comments