test/hotspot/jtreg/gc/class_unloading/TestClassUnloadingDisabled.java
changeset 52925 9c18c9d839d3
parent 50455 2b73cce96dce
child 53523 4c5184c56dc2
equal deleted inserted replaced
52924:420ff459906f 52925:9c18c9d839d3
    60  * @build sun.hotspot.WhiteBox
    60  * @build sun.hotspot.WhiteBox
    61  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    61  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    62  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    62  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    63  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
    63  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
    64  *                   -XX:-ClassUnloading -XX:+UseConcMarkSweepGC TestClassUnloadingDisabled
    64  *                   -XX:-ClassUnloading -XX:+UseConcMarkSweepGC TestClassUnloadingDisabled
       
    65  */
       
    66 
       
    67 /*
       
    68  * @test TestClassUnloadingDisabledShenandoah
       
    69  * @key gc
       
    70  * @bug 8114823
       
    71  * @comment Graal does not support Shenandoah
       
    72  * @requires vm.gc.Shenandoah & !vm.graal.enabled
       
    73  * @requires vm.opt.ExplicitGCInvokesConcurrent != true
       
    74  * @requires vm.opt.ClassUnloading != true
       
    75  * @library /test/lib
       
    76  * @modules java.base/jdk.internal.misc
       
    77  *          java.management
       
    78  * @build sun.hotspot.WhiteBox
       
    79  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
       
    80  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
       
    81  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
       
    82  *                   -XX:-ClassUnloading -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestClassUnloadingDisabled
    65  */
    83  */
    66 
    84 
    67 import java.io.File;
    85 import java.io.File;
    68 import java.io.IOException;
    86 import java.io.IOException;
    69 import java.nio.file.Files;
    87 import java.nio.file.Files;