We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea6930 commit 66ce8e4Copy full SHA for 66ce8e4
src/main/java/org/truffleruby/language/SafepointAction.java
@@ -57,9 +57,9 @@ protected final void perform(Access access) {
57
Thread.currentThread());
58
}
59
60
- final RubyLanguage language = RubyLanguage.getCurrentLanguage();
61
final RubyContext context = RubyLanguage.getCurrentContext();
62
- final RubyThread rubyThread = language.getCurrentThread();
+ // Not using language.getCurrentThread() here because it might not be set yet, see fiberMain()
+ final RubyThread rubyThread = context.getThreadManager().getRubyThreadForJavaThread(access.getThread());
63
if (filter.test(context, rubyThread, this)) {
64
run(rubyThread, access.getLocation());
65
0 commit comments