test/hotspot/jtreg/gc/concurrent_phase_control/TestConcurrentPhaseControlG1Basics.java
changeset 53647 82c95d4b61f0
parent 53523 4c5184c56dc2
equal deleted inserted replaced
53646:043ae846819f 53647:82c95d4b61f0
    25 
    25 
    26 /*
    26 /*
    27  * @test TestConcurrentPhaseControlG1Basics
    27  * @test TestConcurrentPhaseControlG1Basics
    28  * @bug 8169517
    28  * @bug 8169517
    29  * @requires vm.gc.G1
    29  * @requires vm.gc.G1
    30  * @summary Verify G1 supports concurrent phase control and has the
    30  * @summary Verify G1 supports concurrent phase control.
    31  * expected set of phases.
       
    32  * @key gc
    31  * @key gc
    33  * @modules java.base
    32  * @modules java.base
    34  * @library /test/lib /
    33  * @library /test/lib /
    35  * @build sun.hotspot.WhiteBox
    34  * @build sun.hotspot.WhiteBox
    36  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    35  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    43 
    42 
    44 import gc.concurrent_phase_control.CheckSupported;
    43 import gc.concurrent_phase_control.CheckSupported;
    45 
    44 
    46 public class TestConcurrentPhaseControlG1Basics {
    45 public class TestConcurrentPhaseControlG1Basics {
    47 
    46 
    48     private static final String[] phases = {
       
    49         "ANY",
       
    50         "IDLE",
       
    51         "CONCURRENT_CYCLE",
       
    52         "CLEAR_CLAIMED_MARKS",
       
    53         "SCAN_ROOT_REGIONS",
       
    54         "CONCURRENT_MARK",
       
    55         "MARK_FROM_ROOTS",
       
    56         "PRECLEAN",
       
    57         "BEFORE_REMARK",
       
    58         "REMARK",
       
    59         "REBUILD_REMEMBERED_SETS",
       
    60         "CLEANUP_FOR_NEXT_MARK",
       
    61     };
       
    62 
       
    63     public static void main(String[] args) throws Exception {
    47     public static void main(String[] args) throws Exception {
    64         CheckSupported.check("G1", phases);
    48         CheckSupported.check("G1");
    65     }
    49     }
    66 }
    50 }