JDK-8282715 : typo compileony in test Test8005033.java
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2022-03-07
  • Updated: 2022-03-08
  • Resolved: 2022-03-08
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 19
19 masterFixed
Related Reports
Relates :  
Description
There's a typo in test runner. 
-XX:CompileCommand=compileony,compiler.codegen.Test8005033::testBitCount

Because of that, compiler directive fails.  It doesn't affect the testing functionality, but HotSpot has to compile all methods encountered.

After correcting the typo, hotspot only compiles the method it is supposed to test.  Test time of fastdebug build reduces from 16.778s to 0.226 

CompileCommand: An error occurred during parsing
Error: Unrecognized option 'compileony'
Line: 'compileony,compiler.codegen.Test8005033::testBitCount'

Usage: '-XX:CompileCommand=<option>,<method pattern>' - to set boolean option to true
Usage: '-XX:CompileCommand=<option>,<method pattern>,<value>'
Use:   '-XX:CompileCommand=help' for more information and to list all option.

EXECUTING test.
SUCCESSFULLY passed test.
STATUS:Passed.
sh ./x.sh  16.72s user 0.33s system 101% cpu 16.778 total

EXECUTING test.
SUCCESSFULLY passed test.
STATUS:Passed.
sh ./x.sh  0.13s user 0.08s system 95% cpu 0.226 total
Comments
Changeset: 288d1afc Author: Xin Liu <xliu@openjdk.org> Date: 2022-03-08 17:33:15 +0000 URL: https://git.openjdk.java.net/jdk/commit/288d1afc5a2d5ac128b1b427bc877b7815925917
08-03-2022

> Why doesn't the compileCommand error cause a test failure? The complete runner is '-Xcomp -XX:CompileCommand=compileony,compiler.codegen.Test8005033::testBitCount' Even though the compiler directive misses, -Xcomp does compile all methods, including Test8005033::testBitCount (inlined by main). the other reason is that this bug has been fixed, so no exception will be thrown from this test.
07-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7718 Date: 2022-03-07 05:33:26 +0000
07-03-2022

Why doesn't the compileCommand error cause a test failure?
07-03-2022