File tree 2 files changed +5
-4
lines changed
com.oracle.svm.core/src/com/oracle/svm/core/thread
com.oracle.svm.core.posix/src/com/oracle/svm/core/posix/thread 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public ComparableWord getThreadIdentifier() {
141
141
@ Override
142
142
@ Uninterruptible (reason = "Called from uninterruptible code." , mayBeInlined = true )
143
143
public boolean matchesThread (IsolateThread thread , ComparableWord identifier ) {
144
- return VMThreads .OSThreadHandleTL .get (thread ).notEqual (identifier );
144
+ return VMThreads .OSThreadHandleTL .get (thread ).equal (identifier );
145
145
}
146
146
}
147
147
}
Original file line number Diff line number Diff line change @@ -604,8 +604,9 @@ public IsolateThread findIsolateThreadForCurrentOSThread(boolean inCrashHandler)
604
604
THREAD_MUTEX .lockNoTransitionUnspecifiedOwner ();
605
605
}
606
606
try {
607
- IsolateThread thread ;
608
- for (thread = firstThreadUnsafe (); thread .isNonNull () && threadLookup .matchesThread (thread , identifier ); thread = nextThread (thread )) {
607
+ IsolateThread thread = firstThreadUnsafe ();
608
+ while (thread .isNonNull () && !threadLookup .matchesThread (thread , identifier )) {
609
+ thread = nextThread (thread );
609
610
}
610
611
return thread ;
611
612
} finally {
@@ -1046,7 +1047,7 @@ public ComparableWord getThreadIdentifier() {
1046
1047
1047
1048
@ Uninterruptible (reason = "Called from uninterruptible code." , mayBeInlined = true )
1048
1049
public boolean matchesThread (IsolateThread thread , ComparableWord identifier ) {
1049
- return OSThreadIdTL .get (thread ).notEqual (identifier );
1050
+ return OSThreadIdTL .get (thread ).equal (identifier );
1050
1051
}
1051
1052
}
1052
1053
}
You can’t perform that action at this time.
0 commit comments