|
24 | 24 | package gc.stress; |
25 | 25 |
|
26 | 26 | /* |
27 | | - * @test TestReclaimStringsLeaksMemory |
| 27 | + * @test id=Serial |
28 | 28 | * @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 |
31 | 31 | * @requires !vm.debug |
32 | 32 | * @library /test/lib |
33 | 33 | * @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 |
38 | 79 | */ |
39 | 80 |
|
40 | 81 | import java.util.Arrays; |
|
0 commit comments