34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
35 * sun.hotspot.WhiteBox$WhiteBoxPermission
36 * @run main/othervm -XX:+UseG1GC
37 * -Xbootclasspath/a:.
38 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
39 * TestConcurrentPhaseControlG1Basics
40 */
41
42 import gc.concurrent_phase_control.CheckSupported;
43
44 public class TestConcurrentPhaseControlG1Basics {
45
46 private static final String[] phases = {
47 "ANY",
48 "IDLE",
49 "CONCURRENT_CYCLE",
50 "CLEAR_CLAIMED_MARKS",
51 "SCAN_ROOT_REGIONS",
52 "CONCURRENT_MARK",
53 "MARK_FROM_ROOTS",
54 "BEFORE_REMARK",
55 "REMARK",
56 "REBUILD_REMEMBERED_SETS",
57 "CLEANUP_FOR_NEXT_MARK",
58 };
59
60 public static void main(String[] args) throws Exception {
61 CheckSupported.check("G1", phases);
62 }
63 }
|
34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
35 * sun.hotspot.WhiteBox$WhiteBoxPermission
36 * @run main/othervm -XX:+UseG1GC
37 * -Xbootclasspath/a:.
38 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
39 * TestConcurrentPhaseControlG1Basics
40 */
41
42 import gc.concurrent_phase_control.CheckSupported;
43
44 public class TestConcurrentPhaseControlG1Basics {
45
46 private static final String[] phases = {
47 "ANY",
48 "IDLE",
49 "CONCURRENT_CYCLE",
50 "CLEAR_CLAIMED_MARKS",
51 "SCAN_ROOT_REGIONS",
52 "CONCURRENT_MARK",
53 "MARK_FROM_ROOTS",
54 "PRECLEAN",
55 "BEFORE_REMARK",
56 "REMARK",
57 "REBUILD_REMEMBERED_SETS",
58 "CLEANUP_FOR_NEXT_MARK",
59 };
60
61 public static void main(String[] args) throws Exception {
62 CheckSupported.check("G1", phases);
63 }
64 }
|