JDK-8308662 : Update the "java" tool specification for CompileOnly
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-23
  • Updated: 2023-10-16
  • Resolved: 2023-08-03
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 22
22 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
In the "java" tool specification, under "Advanced JIT Compiler Options for java" [1], we should update the information about the -XX:CompileOnly flag. 

Remove the explanation of the allowed pattern syntax. Refer to `CompileCommand`

-XX:CompileOnly=pattern1,[...],patternN is new an alias for: -XX:CompileCommand=compileonly,pattern1 [...] -XX:CompileCommand=compileonly,patternN

See [1] https://docs.oracle.com/en/java/javase/20/docs/specs/man/java.html#advanced-jit-compiler-options-for-java
Comments
When you update the command page please ensure you regenerate and commit the open version of the manpage as well. Thanks.
05-10-2023