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

@HotSpotIntrinsicCandidate is not Oracle-specific

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Introduced In Build:
      b74
    • Introduced In Version:
      9
    • Resolved In Build:
      b89

      Backports

        Description

        The doc comment for the @jdk.internal.HotSpotIntrinsicCandidate
        annotation says that it is "specific to the Oracle Java HotSpot Virtual
        Machine implementation". That's not true. The annotation is defined
        in the open-source HotSpot repository, so it is in fact available in all
        implementations derived from that code, whether from Oracle or from other
        vendors.

        Suggested fix:

        --- a/src/java.base/share/classes/jdk/internal/HotSpotIntrinsicCandidate.java
        +++ b/src/java.base/share/classes/jdk/internal/HotSpotIntrinsicCandidate.java
        @@ -28,8 +28,8 @@
         import java.lang.annotation.*;
         
         /**
        - * The {@code @HotSpotIntrinsicCandidate} annotation is specific to the Oracle Java
        - * HotSpot Virtual Machine implementation and indicates that an annotated method
        + * The {@code @HotSpotIntrinsicCandidate} annotation is specific to the
        + * HotSpot Virtual Machine. It indicates that an annotated method
          * may be (but is not guaranteed to be) intrinsified by the HotSpot VM. A method
          * is intrinsified if the HotSpot VM replaces the annotated method with hand-written
          * assembly and/or hand-written compiler IR -- a compiler intrinsic -- to improve

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  zmajo Zoltan Majo (Inactive)
                  Reporter:
                  mr Mark Reinhold
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: