JDK-8286013 : Incorrect test configurations for compiler/stable/TestStableShort.java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-02
  • Updated: 2022-05-17
  • Resolved: 2022-05-02
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 JDK 17 JDK 18 JDK 19
11.0.16Fixed 17.0.4Fixed 18.0.2Fixed 19 b21Fixed
Related Reports
Relates :  
Relates :  
Description
The four test configurations for compiler/stable/TestStableShort.java are the same.
```
/*
 * @test TestStableShort
 * @summary tests on stable fields and arrays
 * @library /test/lib /
 * @modules java.base/jdk.internal.misc
 * @modules java.base/jdk.internal.vm.annotation
 * @build sun.hotspot.WhiteBox
 *
 * @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
 */
```

I believe this is a copy-paste mistake.
Let's fix it.
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/128 Date: 2022-05-11 02:17:53 +0000
11-05-2022

Fix request for jdk18u I'd like to backport this patch to jdk18u to fix the test bug. Patch can be applied cleanly to jdk18u. Only one test code is affected, so the risk is low. Thanks.
11-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1071 Date: 2022-05-06 14:02:49 +0000
06-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/387 Date: 2022-05-06 13:55:53 +0000
06-05-2022

Fix request for jdk11u & jdk17u. I'd like to backport this patch to jdk11u & jdk17u to fix the test bug. Patch can be applied cleanly to jdk11u & jdk17u. Only one test code is affected, so the risk is low. Thanks.
06-05-2022

Changeset: 3420a1aa Author: Jie Fu <jiefu@openjdk.org> Date: 2022-05-02 22:41:59 +0000 URL: https://git.openjdk.java.net/jdk/commit/3420a1aa70c99b502368ef3f0edc6acea7a2bf1c
02-05-2022

ILW = same as JDK-8203318 = MMH = P3
02-05-2022

Similar to JDK-8203318.
02-05-2022

Test was added by JDK-8035828.
02-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8503 Date: 2022-05-02 14:08:57 +0000
02-05-2022