|
34 | 34 | import jdk.test.lib.process.ProcessTools;
|
35 | 35 |
|
36 | 36 | /*
|
37 |
| - * @test |
38 |
| - * @summary Unit test for jmap utility |
| 37 | + * @test id=Serial |
| 38 | + * @requires vm.gc.Serial |
| 39 | + * @summary Unit test for jmap utility (Serial GC) |
39 | 40 | * @key intermittent
|
40 | 41 | * @library /test/lib
|
41 | 42 | * @build jdk.test.lib.hprof.*
|
42 | 43 | * @build jdk.test.lib.hprof.model.*
|
43 | 44 | * @build jdk.test.lib.hprof.parser.*
|
44 | 45 | * @build jdk.test.lib.hprof.util.*
|
45 |
| - * @run main/timeout=240 BasicJMapTest |
| 46 | + * @run main/othervm/timeout=240 -XX:+UseSerialGC BasicJMapTest |
46 | 47 | */
|
| 48 | + |
| 49 | +/* |
| 50 | + * @test id=Parallel |
| 51 | + * @requires vm.gc.Parallel |
| 52 | + * @summary Unit test for jmap utility (Parallel GC) |
| 53 | + * @key intermittent |
| 54 | + * @library /test/lib |
| 55 | + * @build jdk.test.lib.hprof.* |
| 56 | + * @build jdk.test.lib.hprof.model.* |
| 57 | + * @build jdk.test.lib.hprof.parser.* |
| 58 | + * @build jdk.test.lib.hprof.util.* |
| 59 | + * @run main/othervm/timeout=240 -XX:+UseParallelGC BasicJMapTest |
| 60 | + */ |
| 61 | + |
| 62 | +/* |
| 63 | + * @test id=G1 |
| 64 | + * @requires vm.gc.G1 |
| 65 | + * @summary Unit test for jmap utility (G1 GC) |
| 66 | + * @key intermittent |
| 67 | + * @library /test/lib |
| 68 | + * @build jdk.test.lib.hprof.* |
| 69 | + * @build jdk.test.lib.hprof.model.* |
| 70 | + * @build jdk.test.lib.hprof.parser.* |
| 71 | + * @build jdk.test.lib.hprof.util.* |
| 72 | + * @run main/othervm/timeout=240 -XX:+UseG1GC BasicJMapTest |
| 73 | + */ |
| 74 | + |
| 75 | +/* |
| 76 | + * @test id=Shenandoah |
| 77 | + * @requires vm.gc.Shenandoah |
| 78 | + * @summary Unit test for jmap utility (Shenandoah GC) |
| 79 | + * @key intermittent |
| 80 | + * @library /test/lib |
| 81 | + * @build jdk.test.lib.hprof.* |
| 82 | + * @build jdk.test.lib.hprof.model.* |
| 83 | + * @build jdk.test.lib.hprof.parser.* |
| 84 | + * @build jdk.test.lib.hprof.util.* |
| 85 | + * @run main/othervm/timeout=240 -XX:+UseShenandoahGC BasicJMapTest |
| 86 | + */ |
| 87 | + |
| 88 | +/* |
| 89 | + * @test id=Z |
| 90 | + * @requires vm.gc.Z |
| 91 | + * @summary Unit test for jmap utility (Z GC) |
| 92 | + * @key intermittent |
| 93 | + * @library /test/lib |
| 94 | + * @build jdk.test.lib.hprof.* |
| 95 | + * @build jdk.test.lib.hprof.model.* |
| 96 | + * @build jdk.test.lib.hprof.parser.* |
| 97 | + * @build jdk.test.lib.hprof.util.* |
| 98 | + * @run main/othervm/timeout=240 -XX:+UseZGC BasicJMapTest |
| 99 | + */ |
| 100 | + |
47 | 101 | public class BasicJMapTest {
|
48 | 102 |
|
49 | 103 | private static ProcessBuilder processBuilder = new ProcessBuilder();
|
|
0 commit comments