Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8266232: compiler.c1.TestRangeCheckEliminated should be run in driver mode #3772

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -25,17 +26,17 @@
* @test
* @bug 8263707
* @summary Test range check for constant array and NewMultiArray is removed properly
* @author Hui Shi
*
* @requires vm.debug == true & vm.compiler1.enabled
*
* @library /test/lib
* @run main/othervm compiler.c1.TestRangeCheckEliminated
*
* @author Hui Shi
*/
* @run driver compiler.c1.TestRangeCheckEliminated
*/

package compiler.c1;

import jdk.test.lib.Asserts;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;

@@ -48,8 +49,8 @@ public static void main(String[] args) throws Throwable {
"-XX:TieredStopAtLevel=1",
"-XX:+TraceRangeCheckElimination",
"-XX:-BackgroundCompilation",
"compiler.c1.TestRangeCheckEliminated$test_constant_array"
};
test_constant_array.class.getName()
};

ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(procArgs);
String output = new OutputAnalyzer(pb.start()).getOutput();
@@ -67,8 +68,8 @@ public static void main(String[] args) throws Throwable {
"-XX:TieredStopAtLevel=1",
"-XX:+TraceRangeCheckElimination",
"-XX:-BackgroundCompilation",
"compiler.c1.TestRangeCheckEliminated$test_multi_constant_array"
};
test_multi_constant_array.class.getName()
};

pb = ProcessTools.createJavaProcessBuilder(procArgs);
output = new OutputAnalyzer(pb.start()).getOutput();
@@ -86,8 +87,8 @@ public static void main(String[] args) throws Throwable {
"-XX:TieredStopAtLevel=1",
"-XX:+TraceRangeCheckElimination",
"-XX:-BackgroundCompilation",
"compiler.c1.TestRangeCheckEliminated$test_multi_new_array"
};
test_multi_new_array.class.getName()
};

pb = ProcessTools.createJavaProcessBuilder(procArgs);
output = new OutputAnalyzer(pb.start()).getOutput();