< prev index next >

test/hotspot/jtreg/gc/shenandoah/TestRetainObjects.java

Print this page
@@ -1,7 +1,8 @@
  /*
   * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
+  * Copyright Amazon.com Inc. 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
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -81,10 +82,35 @@
   * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
   *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
   *      TestRetainObjects
   */
  
+ /*
+  * @test id=generational
+  * @summary Acceptance tests: collector can deal with retained objects
+  * @requires vm.gc.Shenandoah
+  *
+  * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      -XX:+ShenandoahVerify
+  *      TestRetainObjects
+  *
+  * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      TestRetainObjects
+  *
+  * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      -XX:+ShenandoahOOMDuringEvacALot -XX:+ShenandoahVerify
+  *      TestRetainObjects
+  *
+  * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      -XX:+ShenandoahAllocFailureALot -XX:+ShenandoahVerify
+  *      TestRetainObjects
+  */
+ 
  /*
   * @test id=static
   * @summary Acceptance tests: collector can deal with retained objects
   * @requires vm.gc.Shenandoah
   *

@@ -106,11 +132,11 @@
  /*
   * @test id=no-tlab
   * @summary Acceptance tests: collector can deal with retained objects
   * @requires vm.gc.Shenandoah
   *
-  * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
+  * @run main/othervm/timeout=300 -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
   *      -XX:+UseShenandoahGC
   *      -XX:-UseTLAB -XX:+ShenandoahVerify
   *      TestRetainObjects
   */
  
< prev index next >