< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java

Print this page
rev 52710 : Upstream/backport Shenandoah to JDK11u


  55  * @run driver jdk.test.lib.FileInstaller . .
  56  * @build sun.hotspot.WhiteBox
  57  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  58  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  59  * @run main/othervm/native
  60  *      -Xbootclasspath/a:.
  61  *      -XX:+UnlockDiagnosticVMOptions
  62  *      -XX:+WhiteBoxAPI
  63  *      TestDriver
  64  */
  65 
  66 import sun.hotspot.code.Compiler;
  67 
  68 public class TestDriver {
  69     public static void main(String[] args) throws Exception {
  70         sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
  71         Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
  72         Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
  73         Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
  74         Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");

  75         Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC");
  76 
  77         if (Compiler.isGraalEnabled() &&
  78             (isUseConcMarkSweepGCon || isUseZGCon || isUseEpsilonGCon)) {
  79             return; // Graal does not support these GCs
  80         }
  81 
  82         String keyPhrase;
  83         if ((isExplicitGCInvokesConcurrentOn && (isUseG1GCon || isUseConcMarkSweepGCon)) || isUseZGCon) {
  84             keyPhrase = "GC";
  85         } else {
  86             keyPhrase = "Pause Full";
  87         }
  88 
  89         nsk.jvmti.scenarios.general_functions.GF08.gf08t.main(new String[] {
  90                 "gf08t001",
  91                 nsk.jvmti.scenarios.general_functions.GF08.gf08t001.class.getName(),
  92                 keyPhrase,
  93                 "gc"});
  94     }
  95 }
  96 


  55  * @run driver jdk.test.lib.FileInstaller . .
  56  * @build sun.hotspot.WhiteBox
  57  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  58  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  59  * @run main/othervm/native
  60  *      -Xbootclasspath/a:.
  61  *      -XX:+UnlockDiagnosticVMOptions
  62  *      -XX:+WhiteBoxAPI
  63  *      TestDriver
  64  */
  65 
  66 import sun.hotspot.code.Compiler;
  67 
  68 public class TestDriver {
  69     public static void main(String[] args) throws Exception {
  70         sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
  71         Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
  72         Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
  73         Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
  74         Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");
  75         Boolean isShenandoahGCon = wb.getBooleanVMFlag("UseShenandoahGC");
  76         Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC");
  77 
  78         if (Compiler.isGraalEnabled() &&
  79             (isUseConcMarkSweepGCon || isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) {
  80             return; // Graal does not support these GCs
  81         }
  82 
  83         String keyPhrase;
  84         if ((isExplicitGCInvokesConcurrentOn && (isUseG1GCon || isUseConcMarkSweepGCon)) || isUseZGCon || isShenandoahGCon) {
  85             keyPhrase = "GC";
  86         } else {
  87             keyPhrase = "Pause Full";
  88         }
  89 
  90         nsk.jvmti.scenarios.general_functions.GF08.gf08t.main(new String[] {
  91                 "gf08t001",
  92                 nsk.jvmti.scenarios.general_functions.GF08.gf08t001.class.getName(),
  93                 keyPhrase,
  94                 "gc"});
  95     }
  96 }
  97 
< prev index next >