< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/ValueOops.java

Print this page




  36 /**
  37  * @test ValueOops
  38  * @summary Test embedding oops into Value types
  39  * @modules java.base/jdk.experimental.bytecode
  40  *          java.base/jdk.experimental.value
  41  * @library /test/lib
  42  * @compile -XDenableValueTypes Person.java
  43  * @compile -XDenableValueTypes ValueOops.java
  44  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  45  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  46  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  47  * @run main/othervm -Xint -XX:+UseSerialGC -Xmx128m -XX:+EnableValhalla
  48  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  49  *                   runtime.valhalla.valuetypes.ValueOops
  50  * @run main/othervm -Xint  -XX:+UseG1GC -Xmx128m -XX:+EnableValhalla
  51  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  52  *                   runtime.valhalla.valuetypes.ValueOops 100
  53  * @run main/othervm -Xint -XX:+UseParallelGC -Xmx128m -XX:+EnableValhalla
  54  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  55  *                   runtime.valhalla.valuetypes.ValueOops





  56  * @run main/othervm -Xcomp -XX:+UseSerialGC -Xmx128m -XX:+EnableValhalla
  57  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  58  *                   runtime.valhalla.valuetypes.ValueOops
  59  * @run main/othervm -Xcomp -XX:+UseG1GC -Xmx128m -XX:+EnableValhalla
  60  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  61  *                   runtime.valhalla.valuetypes.ValueOops 100
  62  * @run main/othervm -Xcomp -XX:+UseParallelGC -Xmx128m -XX:+EnableValhalla
  63  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  64  *                   runtime.valhalla.valuetypes.ValueOops
  65  */
  66 public class ValueOops {
  67 
  68     // Note: -noverify can not be eliminated. Javac Class_Info not using ";Q"
  69 
  70     // Extra debug: -XX:+VerifyOops -XX:+VerifyStack -XX:+VerifyLastFrame -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -XX:+VerifyDuringGC -XX:VerifySubSet=threads,heap
  71     // Even more debugging: -XX:+TraceNewOopMapGeneration -Xlog:gc*=info
  72 
  73     static final int NOF_PEOPLE = 1000; // Exercise arrays of this size
  74 
  75     static int MIN_ACTIVE_GC_COUNT = 10; // Run active workload for this number of GC passes




  36 /**
  37  * @test ValueOops
  38  * @summary Test embedding oops into Value types
  39  * @modules java.base/jdk.experimental.bytecode
  40  *          java.base/jdk.experimental.value
  41  * @library /test/lib
  42  * @compile -XDenableValueTypes Person.java
  43  * @compile -XDenableValueTypes ValueOops.java
  44  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  45  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  46  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  47  * @run main/othervm -Xint -XX:+UseSerialGC -Xmx128m -XX:+EnableValhalla
  48  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  49  *                   runtime.valhalla.valuetypes.ValueOops
  50  * @run main/othervm -Xint  -XX:+UseG1GC -Xmx128m -XX:+EnableValhalla
  51  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  52  *                   runtime.valhalla.valuetypes.ValueOops 100
  53  * @run main/othervm -Xint -XX:+UseParallelGC -Xmx128m -XX:+EnableValhalla
  54  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  55  *                   runtime.valhalla.valuetypes.ValueOops
  56  */
  57 
  58 
  59 
  60 /*
  61  * @run main/othervm -Xcomp -XX:+UseSerialGC -Xmx128m -XX:+EnableValhalla
  62  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  63  *                   runtime.valhalla.valuetypes.ValueOops
  64  * @run main/othervm -Xcomp -XX:+UseG1GC -Xmx128m -XX:+EnableValhalla
  65  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  66  *                   runtime.valhalla.valuetypes.ValueOops 100
  67  * @run main/othervm -Xcomp -XX:+UseParallelGC -Xmx128m -XX:+EnableValhalla
  68  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  69  *                   runtime.valhalla.valuetypes.ValueOops
  70  */
  71 public class ValueOops {
  72 
  73     // Note: -noverify can not be eliminated. Javac Class_Info not using ";Q"
  74 
  75     // Extra debug: -XX:+VerifyOops -XX:+VerifyStack -XX:+VerifyLastFrame -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -XX:+VerifyDuringGC -XX:VerifySubSet=threads,heap
  76     // Even more debugging: -XX:+TraceNewOopMapGeneration -Xlog:gc*=info
  77 
  78     static final int NOF_PEOPLE = 1000; // Exercise arrays of this size
  79 
  80     static int MIN_ACTIVE_GC_COUNT = 10; // Run active workload for this number of GC passes


< prev index next >