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