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

@HotSpotIntrinsicCandidate is not Oracle-specific

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b74
    • 9
    • b89

        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

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

                Created:
                Updated:
                Resolved: