changeset 56048:d41c18a68257

8229848: [Graal] missing Graal intrinsics for Electronic Code Book (ECB) encryption Summary: new intrinsics were added to Graal test Reviewed-by: dlong
author kvn
date Wed, 21 Aug 2019 18:03:50 -0700
parents 26ada504269a
children da4cf75505a7 4863a802a7c1
files src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/CheckGraalIntrinsics.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }