Skip to content

Commit 9c17a35

Browse files
committed
8253748: StressIGV tests fail with release VMs
Reviewed-by: thartmann
1 parent 70b0fcc commit 9c17a35

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/hotspot/jtreg/compiler/arguments/TestStressIGVNOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
* @requires vm.compiler2.enabled
2828
* @summary Tests that different combinations of the options -XX:+StressIGVN and
2929
* -XX:StressSeed=N are accepted.
30-
* @run main/othervm -XX:+StressIGVN
30+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+StressIGVN
3131
* compiler.arguments.TestStressIGVNOptions
32-
* @run main/othervm -XX:+StressIGVN -XX:StressSeed=42
32+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+StressIGVN -XX:StressSeed=42
3333
* compiler.arguments.TestStressIGVNOptions
3434
*/
3535

test/hotspot/jtreg/compiler/debug/TestGenerateStressSeed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void main(String[] args) throws Exception {
5151
String className = TestGenerateStressSeed.class.getName();
5252
String log = "test.log";
5353
String[] procArgs = {
54-
"-Xcomp", "-XX:-TieredCompilation",
54+
"-Xcomp", "-XX:-TieredCompilation", "-XX:+UnlockDiagnosticVMOptions",
5555
"-XX:CompileOnly=" + className + "::sum", "-XX:+StressIGVN",
5656
"-XX:+LogCompilation", "-XX:LogFile=" + log, className, "10"};
5757
ProcessTools.createJavaProcessBuilder(procArgs).start().waitFor();

test/hotspot/jtreg/compiler/debug/TestStressIGVN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/*
3131
* @test
3232
* @bug 8252219
33-
* @requires vm.compiler2.enabled
33+
* @requires vm.debug == true & vm.compiler2.enabled
3434
* @summary Tests that compilations with the same seed yield the same IGVN
3535
* trace, and compilations with different seeds yield different IGVN
3636
* traces.

0 commit comments

Comments
 (0)