Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142771 | emb-9 | Zoltan Majo | P4 | Resolved | Fixed | team |
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
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
- backported by
-
JDK-8142771 @HotSpotIntrinsicCandidate is not Oracle-specific
- Resolved
- relates to
-
JDK-8138732 Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
- Resolved
-
JDK-8076112 Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
- Resolved