JDK-8203318 : compiler/stable/TestStableShort.java is broken
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-16
  • Updated: 2022-05-02
  • Resolved: 2018-05-18
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 11
11 b15Fixed
Related Reports
Relates :  
Description
compiler/stable/TestStableShort.java is run in 4 configurations but all configurations are the same. As result no c1 is tested as it was designed.

 * @run main/bootclasspath/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
 *                                 -XX:CompileOnly=::get,::get1,::get2,::get3,::get4
 *                                 -XX:-TieredCompilation
 *                                 -XX:+FoldStableValues
 *                                 compiler.stable.TestStableShort
 * @run main/bootclasspath/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
 *                                 -XX:CompileOnly=::get,::get1,::get2,::get3,::get4
 *                                 -XX:-TieredCompilation
 *                                 -XX:+FoldStableValues
 *                                 compiler.stable.TestStableShort
 *
 * @run main/bootclasspath/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
 *                                 -XX:CompileOnly=::get,::get1,::get2,::get3,::get4
 *                                 -XX:-TieredCompilation
 *                                 -XX:+FoldStableValues
 *                                 compiler.stable.TestStableShort
 * @run main/bootclasspath/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp
 *                                 -XX:CompileOnly=::get,::get1,::get2,::get3,::get4
 *                                 -XX:-TieredCompilation
 *                                 -XX:+FoldStableValues
 *                                 compiler.stable.TestStableShort


This change was done as part of
changeset:   36616:5172e3dd60f2
parent:      36615:c744e3b0f8c5
parent:      36614:5d0164473902
user:        chegar
date:        Tue Mar 22 17:04:25 2016 +0000
summary:     Merge


See  "hg  diff -r 36614 -r 36616 hotspot/test/compiler/stable/TestStableShort.java"
Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/12fc7bf488ec User: iignatyev Date: 2018-05-18 04:05:37 +0000
18-05-2018

I was curious how did that happen, and it seems Jigsaw integration broke it: http://hg.openjdk.java.net/jdk/jdk/diff/5f9eee6b383b/hotspot/test/compiler/stable/TestStableShort.java I wonder if there are other test breakages in that patch, maybe somebody would like to eyeball them?
17-05-2018

ILW = Test has redundant/missing run statements causing reduced coverage, several tests, no workaround = MMH = P3
17-05-2018

The same issue also exists in following tests: compiler/stable/TestStableByte.java compiler/stable/TestStableChar.java compiler/stable/TestStableDouble.java compiler/stable/TestStableFloat.java compiler/stable/TestStableInt.java compiler/stable/TestStableLong.java compiler/stable/TestStableObject.java
16-05-2018