Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions test/hotspot/jtreg/gc/TestSystemGC.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,46 @@
package gc;

/*
* @test TestSystemGCSerial
* @test id=Serial
* @requires vm.gc.Serial
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UseSerialGC gc.TestSystemGC
* @run main/othervm -XX:+UseSerialGC -XX:+UseLargePages gc.TestSystemGC
*/

/*
* @test TestSystemGCParallel
* @test id=Parallel
* @requires vm.gc.Parallel
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UseParallelGC gc.TestSystemGC
* @run main/othervm -XX:+UseParallelGC -XX:+UseLargePages gc.TestSystemGC
*/

/*
* @test TestSystemGCG1
* @test id=G1
* @requires vm.gc.G1
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UseG1GC gc.TestSystemGC
* @run main/othervm -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
* @run main/othervm -XX:+UseG1GC -XX:+UseLargePages gc.TestSystemGC
*/

/*
* @test TestSystemGCShenandoah
* @test id=Shenandoah
* @requires vm.gc.Shenandoah
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
* @run main/othervm -XX:+UseShenandoahGC gc.TestSystemGC
* @run main/othervm -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC
* @run main/othervm -XX:+UseShenandoahGC -XX:+UseLargePages gc.TestSystemGC
*/

/*
* @test TestSystemGCLargePages
* @test id=Z
* @requires vm.gc.Z
* @comment ZGC will not start when LargePages cannot be allocated, therefore
* we do not run such configuration.
* @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UseLargePages gc.TestSystemGC
* @run main/othervm -XX:+UseZGC gc.TestSystemGC
*/

public class TestSystemGC {
Expand Down