8032642: [TESTBUG] Fix testbugs in compiler/startup/.*
authoranoll
Wed, 26 Feb 2014 07:44:59 +0100
changeset 22918 1c22d2094420
parent 22917 7352848a86e4
child 22919 4d686766ac23
8032642: [TESTBUG] Fix testbugs in compiler/startup/.* Summary: Fixed issues with these tests Reviewed-by: kvn, twisti
hotspot/test/compiler/startup/SmallCodeCacheStartup.java
hotspot/test/compiler/startup/StartupOutput.java
--- a/hotspot/test/compiler/startup/SmallCodeCacheStartup.java	Tue Feb 25 10:42:25 2014 -0800
+++ b/hotspot/test/compiler/startup/SmallCodeCacheStartup.java	Wed Feb 26 07:44:59 2014 +0100
@@ -24,19 +24,13 @@
 /*
  * @test
  * @bug 8023014
- * @summary Test ensures that there is no crash when compiler initialization fails
- * @library /testlibrary
- *
+ * @summary Test ensures that there is no crash if there is not enough ReservedCodeacacheSize
+ *          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 static void main(String[] args) throws Exception {
-    ProcessBuilder pb;
-    OutputAnalyzer out;
-
-    pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=3m", "-XX:CICompilerCount=64", "-version");
-    out = new OutputAnalyzer(pb.start());
-    out.shouldHaveExitValue(0);
+    System.out.println("TEST PASSED");
   }
 }
--- a/hotspot/test/compiler/startup/StartupOutput.java	Tue Feb 25 10:42:25 2014 -0800
+++ b/hotspot/test/compiler/startup/StartupOutput.java	Wed Feb 26 07:44:59 2014 +0100
@@ -25,8 +25,7 @@
  * @test
  * @bug 8026949
  * @summary Test ensures correct VM output during startup
- * @library ../../testlibrary
- *
+ * @library /testlibrary
  */
 import com.oracle.java.testlibrary.*;