JDK-6711908 : JVM needs direct access to some annotations
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-07
  • Updated: 2013-06-26
  • Resolved: 2012-07-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Currently annotation processing is all at the Java level.  This works well, except for annotations which the low-level code of the JVM wants to look at.

We want to inject programmer-written directives for VM-specific optimizations, and to experiment with special binding rules for other languages.  This work will take place initially it the OpenJDK/mlvm project, and if it incubates well may be standardized.

Current RFE is in two parts:

1. put an annotation walker into the class file parser
2. implement an annotation for decorating methods with Hotspot compiler oracle advice

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/6d8f36bcef55

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/6d8f36bcef55