< prev index next >
test/compiler/jvmci/compilerToVM/MethodIsIgnoredBySecurityStackWalkTest.java
Print this page
*** 39,49 ****
import compiler.jvmci.common.CTVMUtilities;
import java.lang.reflect.Method;
import java.lang.reflect.Executable;
import java.util.HashMap;
import java.util.Map;
! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl;
import jdk.vm.ci.hotspot.CompilerToVMHelper;
import jdk.test.lib.Asserts;
public class MethodIsIgnoredBySecurityStackWalkTest {
--- 39,49 ----
import compiler.jvmci.common.CTVMUtilities;
import java.lang.reflect.Method;
import java.lang.reflect.Executable;
import java.util.HashMap;
import java.util.Map;
! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod;
import jdk.vm.ci.hotspot.CompilerToVMHelper;
import jdk.test.lib.Asserts;
public class MethodIsIgnoredBySecurityStackWalkTest {
*** 52,62 ****
testCases.forEach(
MethodIsIgnoredBySecurityStackWalkTest::runSanityTest);
}
private static void runSanityTest(Executable aMethod, Boolean expected) {
! HotSpotResolvedJavaMethodImpl method
= CTVMUtilities.getResolvedMethod(aMethod);
boolean isIgnored = CompilerToVMHelper
.methodIsIgnoredBySecurityStackWalk(method);
String msg = String.format("%s is%s ignored but must%s", aMethod,
isIgnored ? "" : " not",
--- 52,62 ----
testCases.forEach(
MethodIsIgnoredBySecurityStackWalkTest::runSanityTest);
}
private static void runSanityTest(Executable aMethod, Boolean expected) {
! HotSpotResolvedJavaMethod method
= CTVMUtilities.getResolvedMethod(aMethod);
boolean isIgnored = CompilerToVMHelper
.methodIsIgnoredBySecurityStackWalk(method);
String msg = String.format("%s is%s ignored but must%s", aMethod,
isIgnored ? "" : " not",
< prev index next >