mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8364927: Add @requires annotation to TestReclaimStringsLeaksMemory.java
Reviewed-by: tschatzl, stefank, ayang
This commit is contained in:
parent
2c114d676d
commit
2bfada3f58
@ -24,19 +24,60 @@
|
||||
package gc.stress;
|
||||
|
||||
/*
|
||||
* @test TestReclaimStringsLeaksMemory
|
||||
* @test id=Serial
|
||||
* @bug 8180048
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely.
|
||||
* @requires vm.gc == "null"
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with SerialGC.
|
||||
* @requires vm.gc.Serial
|
||||
* @requires !vm.debug
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test id=Parallel
|
||||
* @bug 8180048
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ParallelGC.
|
||||
* @requires vm.gc.Parallel
|
||||
* @requires !vm.debug
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test id=G1
|
||||
* @bug 8180048
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with G1GC.
|
||||
* @requires vm.gc.G1
|
||||
* @requires !vm.debug
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test id=Shenandoah
|
||||
* @bug 8180048
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ShenandoahGC.
|
||||
* @requires vm.gc.Shenandoah
|
||||
* @requires !vm.debug
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseShenandoahGC
|
||||
*/
|
||||
|
||||
/*
|
||||
* @test id=Z
|
||||
* @bug 8180048
|
||||
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ZGC.
|
||||
* @requires vm.gc.Z
|
||||
* @requires !vm.debug
|
||||
* @library /test/lib
|
||||
* @modules java.base/jdk.internal.misc
|
||||
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseZGC
|
||||
*/
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.ArrayList;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user