JDK-8050853 : Extend -XX:CompileCommand to include an option that always compiles the specified method
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-07-16
  • Updated: 2015-01-21
  • Resolved: 2015-01-21
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 9
9Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Description
The -XX:CompileCommand should be extended to support an option that forces the VM to always compile the specified method on first encounter. In contrast to -Xcomp in combination with -XX:CompileOnly this does not _only_ compile the method but compiles other methods as well.

CompilationPolicy::must_be_compiled(..) is probably a good entry point to figure out how to implement it.
Comments
We split this RFE into three other RFEs to be implemented separately. All three RFEs were fixed, so I close this issue as fixed.
21-01-2015

Vladimir Kozlov suggested: "I think we need to split this into several RFE: 1. General support of flags with value in option command. 2. Make use of CompileThreshold in Tiered. 3. Per method compilation threshold." (1) is addressed by JDK-8055286 and JDK-8056964 (2) is addressed by JDK-8059604 (3) is addressed by JDK-8059606
02-10-2014

As Vladimir Kozlov proposed we should implement a more general approach: "Instead of always compile you may implement more general approach by specifying compilation threshold per method. Just think about it. Here is prototype I did some time ago: http://cr.openjdk.java.net/~kvn/threshold/webrev/ It was done before Tiered so it needs to be extended for it. And Ignore PermSize C1 changes."
17-07-2014