mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8032642: [TESTBUG] Fix testbugs in compiler/startup/.*
Fixed issues with these tests Reviewed-by: kvn, twisti
This commit is contained in:
parent
84c68fc78a
commit
39b5a040cd
2 changed files with 6 additions and 13 deletions
|
@ -24,19 +24,13 @@
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8023014
|
* @bug 8023014
|
||||||
* @summary Test ensures that there is no crash when compiler initialization fails
|
* @summary Test ensures that there is no crash if there is not enough ReservedCodeacacheSize
|
||||||
* @library /testlibrary
|
* to initialize all compiler threads. The option -Xcomp gives the VM more time to
|
||||||
*
|
* to trigger the old bug.
|
||||||
|
* @run main/othervm -XX:ReservedCodeCacheSize=3m -XX:CICompilerCount=64 -Xcomp SmallCodeCacheStartup
|
||||||
*/
|
*/
|
||||||
import com.oracle.java.testlibrary.*;
|
|
||||||
|
|
||||||
public class SmallCodeCacheStartup {
|
public class SmallCodeCacheStartup {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
ProcessBuilder pb;
|
System.out.println("TEST PASSED");
|
||||||
OutputAnalyzer out;
|
|
||||||
|
|
||||||
pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=3m", "-XX:CICompilerCount=64", "-version");
|
|
||||||
out = new OutputAnalyzer(pb.start());
|
|
||||||
out.shouldHaveExitValue(0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,7 @@
|
||||||
* @test
|
* @test
|
||||||
* @bug 8026949
|
* @bug 8026949
|
||||||
* @summary Test ensures correct VM output during startup
|
* @summary Test ensures correct VM output during startup
|
||||||
* @library ../../testlibrary
|
* @library /testlibrary
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
import com.oracle.java.testlibrary.*;
|
import com.oracle.java.testlibrary.*;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue