test/compiler/startup/SmallCodeCacheStartup.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff test/compiler/startup/SmallCodeCacheStartup.java
test/compiler/startup/SmallCodeCacheStartup.java
Print this page
*** 25,36 ****
* @test
* @bug 8023014
* @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
*/
public class SmallCodeCacheStartup {
public static void main(String[] args) throws Exception {
System.out.println("TEST PASSED");
}
}
--- 25,46 ----
* @test
* @bug 8023014
* @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.
! * @library /testlibrary
*/
+ import com.oracle.java.testlibrary.*;
+
public class SmallCodeCacheStartup {
public static void main(String[] args) throws Exception {
+ try {
+ ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:ReservedCodeCacheSize=3m",
+ "-XX:CICompilerCount=64",
+ "-Xcomp",
+ "SmallCodeCacheStartup");
+ pb.start();
+ } catch (VirtualMachineError e) {}
+
System.out.println("TEST PASSED");
}
}
test/compiler/startup/SmallCodeCacheStartup.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File