8229848: [Graal] missing Graal intrinsics for Electronic Code Book (ECB) encryption
authorkvn
Wed, 21 Aug 2019 18:03:50 -0700
changeset 57831 d41c18a68257
parent 57830 26ada504269a
child 57832 da4cf75505a7
child 57840 4863a802a7c1
8229848: [Graal] missing Graal intrinsics for Electronic Code Book (ECB) encryption Summary: new intrinsics were added to Graal test Reviewed-by: dlong
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
--- 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);
     }