--- a/test/hotspot/jtreg/gc/TestSystemGC.java Mon Dec 10 17:34:49 2018 +0300
+++ b/test/hotspot/jtreg/gc/TestSystemGC.java Mon Dec 10 15:47:44 2018 +0100
@@ -45,6 +45,14 @@
* @run main/othervm -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent TestSystemGC
*/
+/*
+ * @test TestSystemGCShenandoah
+ * @key gc
+ * @requires vm.gc.Shenandoah & !vm.graal.enabled
+ * @summary Runs System.gc() with different flags.
+ * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestSystemGC
+ * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent TestSystemGC
+ */
public class TestSystemGC {
public static void main(String args[]) throws Exception {
System.gc();