8035968: Add C2 SHA intrinsics for SPARC cpus which have sha instructions.
Vladimir Kozlov
vladimir.kozlov at oracle.com
Wed Jun 11 16:01:06 UTC 2014
James found an issue in my last change:
src/cpu/sparc/vm/vm_version_sparc.cpp
324 if (!UseSHA) {
325 FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
326 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
327 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
^^^512
I will fix it and will push the change today. I and Roland reviewed it and James fully tested it.
Thanks,
Vladimir
On 6/10/14 9:29 PM, Vladimir Kozlov wrote:
> http://cr.openjdk.java.net/~kvn/8035968/webrev.02
> https://bugs.openjdk.java.net/browse/JDK-8035968
>
> Contributed by James Cheng.
>
> Add C2 SHA (secure hashing) intrinsics for SPARC cpus which have sha instructions. It is used only when an application
> is configured to use the SUN provider (the same as for crypto AES intrinsics).
>
> SHA intrinsics are added for methods sun.security.provider.SHA.implCompress(), SHA2.implCompress(), SHA5.implCompress()
> and sun.security.provider.DigestBase.implCompressMultiBlock().
> In the last case the intrinsic code calls the corresponding assembler stub routines based on the final klass of
> DigestBase object using intrinsics predicates.
>
> Tested with hotspot and jdk regression tests, CTW, NSK, JPRT control build with testset pit which includes jdk
> regression tests.
>
> New regression test is added.
>
> Thanks,
> Vladimir
More information about the hotspot-compiler-dev
mailing list