< prev index next >

test/hotspot/jtreg/gc/stress/gclocker/TestGCLockerWithShenandoah.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.

@@ -36,10 +37,28 @@
   *      gc.stress.gclocker.TestGCLockerWithShenandoah
   *
   * @run main/native/othervm/timeout=200 -Xlog:gc*=info -Xms1500m -Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
   *      -XX:+UseShenandoahGC
   *      gc.stress.gclocker.TestGCLockerWithShenandoah
+  */
+ 
+ /*
+  * @test id=generational
+  * @library /
+  * @requires vm.gc.Shenandoah
+  * @summary Stress Shenandoah's JNI handling by calling GetPrimitiveArrayCritical while concurrently filling up old gen.
+  *
+  * @run main/native/othervm/timeout=200 -Xlog:gc*=info -Xms1500m -Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
+  *      -XX:ShenandoahMaxYoungPercentage=90
+  *      -XX:+ShenandoahVerify
+  *      gc.stress.gclocker.TestGCLockerWithShenandoah
+  *
+  * @run main/native/othervm/timeout=200 -Xlog:gc*=info -Xms1500m -Xmx1500m -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
+  *      -XX:ShenandoahMaxYoungPercentage=90
+  *      gc.stress.gclocker.TestGCLockerWithShenandoah
   */
  
  /*
   * @test id=aggressive
   * @library /
< prev index next >