Skip to content

Commit 78bbfd6

Browse files
rm-gh-8GoeLin
authored andcommitted
8364927: Add @requires annotation to TestReclaimStringsLeaksMemory.java
Reviewed-by: phh Backport-of: 2bfada3
1 parent 4eb4456 commit 78bbfd6

1 file changed

Lines changed: 48 additions & 7 deletions

File tree

test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,58 @@
2424
package gc.stress;
2525

2626
/*
27-
* @test TestReclaimStringsLeaksMemory
27+
* @test id=Serial
2828
* @bug 8180048
29-
* @summary Ensure that during a Full GC interned string memory is reclaimed completely.
30-
* @requires vm.gc == "null"
29+
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with SerialGC.
30+
* @requires vm.gc.Serial
3131
* @requires !vm.debug
3232
* @library /test/lib
3333
* @modules java.base/jdk.internal.misc
34-
* @run driver gc.stress.TestReclaimStringsLeaksMemory
35-
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
36-
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
37-
* @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
34+
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
35+
*/
36+
37+
/*
38+
* @test id=Parallel
39+
* @bug 8180048
40+
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ParallelGC.
41+
* @requires vm.gc.Parallel
42+
* @requires !vm.debug
43+
* @library /test/lib
44+
* @modules java.base/jdk.internal.misc
45+
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
46+
*/
47+
48+
/*
49+
* @test id=G1
50+
* @bug 8180048
51+
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with G1GC.
52+
* @requires vm.gc.G1
53+
* @requires !vm.debug
54+
* @library /test/lib
55+
* @modules java.base/jdk.internal.misc
56+
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
57+
*/
58+
59+
/*
60+
* @test id=Shenandoah
61+
* @bug 8180048
62+
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ShenandoahGC.
63+
* @requires vm.gc.Shenandoah
64+
* @requires !vm.debug
65+
* @library /test/lib
66+
* @modules java.base/jdk.internal.misc
67+
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseShenandoahGC
68+
*/
69+
70+
/*
71+
* @test id=Z
72+
* @bug 8180048
73+
* @summary Ensure that during a Full GC interned string memory is reclaimed completely with ZGC.
74+
* @requires vm.gc.Z
75+
* @requires !vm.debug
76+
* @library /test/lib
77+
* @modules java.base/jdk.internal.misc
78+
* @run driver/timeout=480 gc.stress.TestReclaimStringsLeaksMemory -XX:+UseZGC
3879
*/
3980

4081
import java.util.Arrays;

0 commit comments

Comments
 (0)