Skip to content

Commit

Permalink
[GR-48503] Remove NATIVE_ONLY from the loom support check
Browse files Browse the repository at this point in the history
PullRequest: graal/15558
  • Loading branch information
patrick96 committed Sep 14, 2023
2 parents 5d904c8 + 6c698e5 commit d0e20ba
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit d0e20ba

Please sign in to comment.