JDK-8302639 : Add support for asterisk operator for -XX:CompileOnly
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-02-16
  • Updated: 2023-02-27
  • Resolved: 2023-02-27
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.
Other
tbdResolved
Related Reports
Duplicate :  
Description
`-XX:CompileOnly` does not support asterisk (*) as wildcard whereas  `-XX:CompileCommand=compileonly` does:

- does not work: `java -Xcomp -XX:CompileOnly=java.lang.*::* -XX:+PrintCompilation -XX:CompileCommand=quiet -version` 
 
- works: `java -Xcomp -XX:CompileCommand=compileonly,java.lang.*::* -XX:+PrintCompilation -XX:CompileCommand=quiet -version`