diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/VMThreads.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/VMThreads.java index 8e291e8b06b5..4b2a00e9a661 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/VMThreads.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/VMThreads.java @@ -26,7 +26,6 @@ import static com.oracle.svm.core.graal.nodes.WriteCurrentVMThreadNode.writeCurrentVMThread; -import jdk.graal.compiler.word.Word; import org.graalvm.nativeimage.CurrentIsolate; import org.graalvm.nativeimage.ImageSingletons; import org.graalvm.nativeimage.Isolate; @@ -69,6 +68,7 @@ import jdk.graal.compiler.core.common.SuppressFBWarnings; import jdk.graal.compiler.replacements.ReplacementsUtil; import jdk.graal.compiler.replacements.nodes.AssertionNode; +import jdk.graal.compiler.word.Word; /** * Utility methods for the manipulation and iteration of {@link IsolateThread}s. @@ -585,7 +585,7 @@ public boolean verifyIsCurrentThread(IsolateThread thread) { return OSThreadIdTL.get(thread).equal(osThreadId); } - @Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true) + @Uninterruptible(reason = "Locking without transition requires that the whole critical section is uninterruptible.") @SuppressFBWarnings(value = "UC", justification = "FB does not know that VMMutex objects are replaced, i.e., that the lock/unlock methods do not throw an error at run time.") public IsolateThread findIsolateThreadForCurrentOSThread(boolean inCrashHandler) { ThreadLookup threadLookup = ImageSingletons.lookup(ThreadLookup.class);