< prev index next >

test/runtime/valhalla/valuetypes/ValueOops.java

Print this page




  29 import jdk.experimental.value.*;
  30 
  31 import static jdk.test.lib.Asserts.*;
  32 import jdk.test.lib.Utils;
  33 import sun.hotspot.WhiteBox;
  34 
  35 /*
  36  * @test ValueOops
  37  * @summary Test embedding oops into Value types
  38  * @library /testlibrary /test/lib /
  39  * @build sun.hotspot.WhiteBox
  40  *        runtime.valhalla.valuetypes.ValueOops
  41  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  42  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  43  * @run main/othervm -Xint -noverify -XX:+UseSerialGC -Xmx128m
  44  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  45  *                   runtime.valhalla.valuetypes.ValueOops
  46  * @run main/othervm -Xint -noverify -XX:+UseG1GC -Xmx128m
  47  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  48  *                   runtime.valhalla.valuetypes.ValueOops






  49  */
  50 public class ValueOops {
  51 
  52     /*
  53      * Remaining work:
  54      *     -Xint -noverify -XX:+UseParallelGC -Xmx128m runtime.valhalla.valuetypes.ValueOops
  55      *     Generated layout permutations
  56      */
  57 
  58     // Extra debug: -XX:+VerifyOops -XX:+VerifyStack -XX:+VerifyLastFrame -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -XX:+VerifyDuringGC -XX:VerifySubSet=threads,heap
  59     // Even more debugging: -XX:+TraceNewOopMapGeneration -Xlog:gc*=info
  60 
  61     static final int NOF_PEOPLE = 1000; // Exercise arrays of this size
  62 
  63     static int MIN_ACTIVE_GC_COUNT = 10; // Run active workload for this number of GC passes
  64 
  65     static int MED_ACTIVE_GC_COUNT = 4;  // Medium life span in terms of GC passes
  66 
  67     static final String TEST_STRING1 = "Test String 1";
  68     static final String TEST_STRING2 = "Test String 2";




  29 import jdk.experimental.value.*;
  30 
  31 import static jdk.test.lib.Asserts.*;
  32 import jdk.test.lib.Utils;
  33 import sun.hotspot.WhiteBox;
  34 
  35 /*
  36  * @test ValueOops
  37  * @summary Test embedding oops into Value types
  38  * @library /testlibrary /test/lib /
  39  * @build sun.hotspot.WhiteBox
  40  *        runtime.valhalla.valuetypes.ValueOops
  41  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  42  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  43  * @run main/othervm -Xint -noverify -XX:+UseSerialGC -Xmx128m
  44  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  45  *                   runtime.valhalla.valuetypes.ValueOops
  46  * @run main/othervm -Xint -noverify -XX:+UseG1GC -Xmx128m
  47  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  48  *                   runtime.valhalla.valuetypes.ValueOops
  49  * @run main/othervm -Xint -noverify -XX:+UseParallelGC -Xmx128m
  50  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  51  *                   runtime.valhalla.valuetypes.ValueOops
  52  * @run main/othervm -Xint -noverify -XX:+UseConcMarkSweepGC -Xmx128m
  53  *                   -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  54  *                   runtime.valhalla.valuetypes.ValueOops
  55  */
  56 public class ValueOops {
  57 
  58     /*
  59      * Remaining work:
  60      *     -Xint -noverify -XX:+UseParallelGC -Xmx128m runtime.valhalla.valuetypes.ValueOops
  61      *     Generated layout permutations
  62      */
  63 
  64     // Extra debug: -XX:+VerifyOops -XX:+VerifyStack -XX:+VerifyLastFrame -XX:+VerifyBeforeGC -XX:+VerifyAfterGC -XX:+VerifyDuringGC -XX:VerifySubSet=threads,heap
  65     // Even more debugging: -XX:+TraceNewOopMapGeneration -Xlog:gc*=info
  66 
  67     static final int NOF_PEOPLE = 1000; // Exercise arrays of this size
  68 
  69     static int MIN_ACTIVE_GC_COUNT = 10; // Run active workload for this number of GC passes
  70 
  71     static int MED_ACTIVE_GC_COUNT = 4;  // Medium life span in terms of GC passes
  72 
  73     static final String TEST_STRING1 = "Test String 1";
  74     static final String TEST_STRING2 = "Test String 2";


< prev index next >