Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8130120

Handling of SHA intrinsics inconsistent across platforms

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u112, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b74

      Backports

        Description

        Currently, different platforms print different warning messages enabling intrinsics using SHA instructions. SPARC and AARCH64 print "SHA intrinsics are not available on this CPU", x86 prints "SHA instructions are not available on this CPU".

        Moreover, SPARC and AARCH64 print detailed error messages if a specific intrinsic (e.g., SHA1) is enabled on a platform that does not implement an SHA1 instruction "Intrinsics for SHA-1 crypto hash functions not available.". x86 silently sets the appropriate flag (UseSHA1Intrinsics) to false.

        A side effect of these inconsistencies is overly complicated test code, for example in compiler/intrinsics/sha/cli/SHAOptionsBase.java.

        This issue is supposed to make handling of SHA-related options uniform and also update test code to expect a single, platform-independent output format.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zmajo Zoltan Majo (Inactive)
                  Reporter:
                  zmajo Zoltan Majo (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: