From 6c698e5ee30df084a5e351107114682ce04bd1b5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 7 Sep 2023 17:21:38 +0200 Subject: [PATCH] Remove NATIVE_ONLY from the loom support check --- .../src/com/oracle/svm/core/thread/ContinuationsFeature.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/ContinuationsFeature.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/ContinuationsFeature.java index 91d7a0ab0010..667712446f67 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/ContinuationsFeature.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/ContinuationsFeature.java @@ -28,9 +28,7 @@ import org.graalvm.compiler.serviceprovider.JavaVersionUtil; import org.graalvm.nativeimage.ImageSingletons; -import org.graalvm.nativeimage.Platform; import org.graalvm.nativeimage.hosted.RuntimeClassInitialization; -import org.graalvm.nativeimage.impl.InternalPlatform; import com.oracle.svm.core.SubstrateControlFlowIntegrity; import com.oracle.svm.core.SubstrateOptions; @@ -54,7 +52,7 @@ public void afterRegistration(AfterRegistrationAccess access) { boolean supportLoom = false; if (JavaVersionUtil.JAVA_SPEC >= firstLoomPreviewVersion) { boolean haveLoom; - if (JavaVersionUtil.JAVA_SPEC > lastLoomPreviewVersion && Platform.includedIn(InternalPlatform.NATIVE_ONLY.class)) { + if (JavaVersionUtil.JAVA_SPEC > lastLoomPreviewVersion) { haveLoom = true; } else { try {