8229848: [Graal] missing Graal intrinsics for Electronic Code Book (ECB) encryption
Summary: new intrinsics were added to Graal test
Reviewed-by: dlong
--- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java Thu Aug 22 02:05:06 2019 +0200
+++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java Wed Aug 21 18:03:50 2019 -0700
@@ -415,6 +415,12 @@
"jdk/internal/misc/Unsafe.writebackPreSync0()V");
}
+ if (isJDK14OrHigher()) {
+ add(toBeInvestigated,
+ "com/sun/crypto/provider/ElectronicCodeBook.implECBDecrypt([BII[BI)I",
+ "com/sun/crypto/provider/ElectronicCodeBook.implECBEncrypt([BII[BI)I");
+ }
+
if (!config.inlineNotify()) {
add(ignore, "java/lang/Object.notify()V");
}
@@ -587,6 +593,10 @@
return JavaVersionUtil.JAVA_SPEC >= 13;
}
+ private static boolean isJDK14OrHigher() {
+ return JavaVersionUtil.JAVA_SPEC >= 14;
+ }
+
public interface Refiner {
void refine(CheckGraalIntrinsics checker);
}