< prev index next >

test/gc/g1/plab/lib/PLABUtils.java

Print this page




  24 
  25 import java.util.ArrayList;
  26 import java.util.Arrays;
  27 import java.util.Collections;
  28 import java.util.List;
  29 import jdk.test.lib.Utils;
  30 
  31 /**
  32  * Utilities for PLAB testing.
  33  */
  34 public class PLABUtils {
  35 
  36     /**
  37      * PLAB tests default options list
  38      */
  39     private final static String[] GC_TUNE_OPTIONS = {
  40         "-XX:+UseG1GC",
  41         "-XX:G1HeapRegionSize=1m",
  42         "-XX:OldSize=64m",
  43         "-XX:-UseAdaptiveSizePolicy",

  44         "-XX:-UseTLAB",
  45         "-XX:SurvivorRatio=1"
  46     };
  47 
  48     /**
  49      * GC logging options list.
  50      */
  51     private final static String G1_PLAB_LOGGING_OPTIONS[] = {
  52         "-Xlog:gc=debug,gc+plab=debug"
  53     };
  54 
  55     /**
  56      * List of options required to use WhiteBox.
  57      */
  58     private final static String WB_DIAGNOSTIC_OPTIONS[] = {
  59         "-Xbootclasspath/a:.",
  60         "-XX:+UnlockDiagnosticVMOptions",
  61         "-XX:+WhiteBoxAPI"
  62     };
  63 


  24 
  25 import java.util.ArrayList;
  26 import java.util.Arrays;
  27 import java.util.Collections;
  28 import java.util.List;
  29 import jdk.test.lib.Utils;
  30 
  31 /**
  32  * Utilities for PLAB testing.
  33  */
  34 public class PLABUtils {
  35 
  36     /**
  37      * PLAB tests default options list
  38      */
  39     private final static String[] GC_TUNE_OPTIONS = {
  40         "-XX:+UseG1GC",
  41         "-XX:G1HeapRegionSize=1m",
  42         "-XX:OldSize=64m",
  43         "-XX:-UseAdaptiveSizePolicy",
  44         "-XX:MaxTenuringThreshold=1",
  45         "-XX:-UseTLAB",
  46         "-XX:SurvivorRatio=1"
  47     };
  48 
  49     /**
  50      * GC logging options list.
  51      */
  52     private final static String G1_PLAB_LOGGING_OPTIONS[] = {
  53         "-Xlog:gc=debug,gc+plab=debug"
  54     };
  55 
  56     /**
  57      * List of options required to use WhiteBox.
  58      */
  59     private final static String WB_DIAGNOSTIC_OPTIONS[] = {
  60         "-Xbootclasspath/a:.",
  61         "-XX:+UnlockDiagnosticVMOptions",
  62         "-XX:+WhiteBoxAPI"
  63     };
  64 
< prev index next >