Skip to content

Commit 9227013

Browse files
[GR-66104] Small cleanups regarding JDK latest.
PullRequest: graal/21136
2 parents 64c4a87 + 764bf5a commit 9227013

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

substratevm/src/com.oracle.svm.core.foreign/src/com/oracle/svm/core/foreign/Target_jdk_internal_misc_ScopedMemoryAccess_ScopedAccessError.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
package com.oracle.svm.core.foreign;
2626

2727
import com.oracle.svm.core.annotate.TargetClass;
28-
import com.oracle.svm.core.jdk.JDKLatest;
2928

30-
@TargetClass(className = "jdk.internal.misc.ScopedMemoryAccess$ScopedAccessError", onlyWith = {JDKLatest.class, ForeignAPIPredicates.Enabled.class})
29+
@TargetClass(className = "jdk.internal.misc.ScopedMemoryAccess$ScopedAccessError", onlyWith = ForeignAPIPredicates.Enabled.class)
3130
final class Target_jdk_internal_misc_ScopedMemoryAccess_ScopedAccessError {
3231
}

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jvmti/JvmtiFunctions.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static int NotifyFramePop(JvmtiExternalEnv externalEnv, JThread thread, int dept
410410
}
411411

412412
@RestrictHeapAccess(access = NO_ALLOCATION, reason = "JVMTI function.")
413-
@CEntryPoint(include = JvmtiEnabledAndJDKLatest.class, publishAs = CEntryPoint.Publish.NotPublished)
413+
@CEntryPoint(include = JvmtiEnabled.class, publishAs = CEntryPoint.Publish.NotPublished)
414414
@CEntryPointOptions(prologue = JvmtiEnvEnterPrologue.class)
415415
static int ClearAllFramePops(JvmtiExternalEnv externalEnv, JThread thread) {
416416
return JVMTI_ERROR_ACCESS_DENIED.getCValue();
@@ -1439,12 +1439,4 @@ public boolean getAsBoolean() {
14391439
return SubstrateOptions.JVMTI.getValue();
14401440
}
14411441
}
1442-
1443-
@Platforms(Platform.HOSTED_ONLY.class)
1444-
public static final class JvmtiEnabledAndJDKLatest implements BooleanSupplier {
1445-
@Override
1446-
public boolean getAsBoolean() {
1447-
return SubstrateOptions.JVMTI.getValue();
1448-
}
1449-
}
14501442
}

0 commit comments

Comments
 (0)