# HG changeset patch # User kvn # Date 1566435830 25200 # Node ID d41c18a68257ef590e7ea388da47be3434577217 # Parent 26ada504269aeab4a928c705b963169240b18fa6 8229848: [Graal] missing Graal intrinsics for Electronic Code Book (ECB) encryption Summary: new intrinsics were added to Graal test Reviewed-by: dlong diff -r 26ada504269a -r d41c18a68257 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); }