Mercurial > hg > truffle
comparison test/compiler/startup/SmallCodeCacheStartup.java @ 14502:2757a106eaa8
8032642: [TESTBUG] Fix testbugs in compiler/startup/.*
Summary: Fixed issues with these tests
Reviewed-by: kvn, twisti
author | anoll |
---|---|
date | Wed, 26 Feb 2014 07:44:59 +0100 |
parents | 655663109d87 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14501:f217a92ae194 | 14502:2757a106eaa8 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /* | 24 /* |
25 * @test | 25 * @test |
26 * @bug 8023014 | 26 * @bug 8023014 |
27 * @summary Test ensures that there is no crash when compiler initialization fails | 27 * @summary Test ensures that there is no crash if there is not enough ReservedCodeacacheSize |
28 * @library /testlibrary | 28 * to initialize all compiler threads. The option -Xcomp gives the VM more time to |
29 * | 29 * to trigger the old bug. |
30 * @run main/othervm -XX:ReservedCodeCacheSize=3m -XX:CICompilerCount=64 -Xcomp SmallCodeCacheStartup | |
30 */ | 31 */ |
31 import com.oracle.java.testlibrary.*; | |
32 | |
33 public class SmallCodeCacheStartup { | 32 public class SmallCodeCacheStartup { |
34 public static void main(String[] args) throws Exception { | 33 public static void main(String[] args) throws Exception { |
35 ProcessBuilder pb; | 34 System.out.println("TEST PASSED"); |
36 OutputAnalyzer out; | |
37 | |
38 pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=3m", "-XX:CICompilerCount=64", "-version"); | |
39 out = new OutputAnalyzer(pb.start()); | |
40 out.shouldHaveExitValue(0); | |
41 } | 35 } |
42 } | 36 } |