test/gc/g1/TestHumongousCodeCacheRoots.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/gc/g1

test/gc/g1/TestHumongousCodeCacheRoots.java

Print this page




 118     OutputAnalyzer output = new OutputAnalyzer(pb.start());
 119     output.shouldHaveExitValue(0);
 120 
 121     return output;
 122   }
 123 
 124   public static void runTest(String compiler, String[] other) throws Exception {
 125     ArrayList<String> joined = new ArrayList<String>();
 126     joined.add(compiler);
 127     joined.addAll(Arrays.asList(other));
 128     runWhiteBoxTest(joined.toArray(new String[0]), TestHumongousCodeCacheRootsHelper.class.getName(),
 129       new String[] {}, false);
 130   }
 131 
 132   public static void main(String[] args) throws Exception {
 133     final String[] baseArguments = new String[] {
 134       "-XX:+UseG1GC", "-XX:G1HeapRegionSize=1M", "-Xmx100M", // make sure we get a humongous region
 135       "-XX:+UnlockDiagnosticVMOptions",
 136       "-XX:InitiatingHeapOccupancyPercent=1", // strong code root marking
 137       "-XX:+G1VerifyHeapRegionCodeRoots", "-XX:+VerifyAfterGC", // make sure that verification is run
 138       "-XX:NmethodSweepFraction=1", "-XX:NmethodSweepCheckInterval=1",  // make the code cache sweep more predictable
 139     };
 140     runTest("-client", baseArguments);
 141     runTest("-server", baseArguments);
 142   }
 143 }
 144 


 118     OutputAnalyzer output = new OutputAnalyzer(pb.start());
 119     output.shouldHaveExitValue(0);
 120 
 121     return output;
 122   }
 123 
 124   public static void runTest(String compiler, String[] other) throws Exception {
 125     ArrayList<String> joined = new ArrayList<String>();
 126     joined.add(compiler);
 127     joined.addAll(Arrays.asList(other));
 128     runWhiteBoxTest(joined.toArray(new String[0]), TestHumongousCodeCacheRootsHelper.class.getName(),
 129       new String[] {}, false);
 130   }
 131 
 132   public static void main(String[] args) throws Exception {
 133     final String[] baseArguments = new String[] {
 134       "-XX:+UseG1GC", "-XX:G1HeapRegionSize=1M", "-Xmx100M", // make sure we get a humongous region
 135       "-XX:+UnlockDiagnosticVMOptions",
 136       "-XX:InitiatingHeapOccupancyPercent=1", // strong code root marking
 137       "-XX:+G1VerifyHeapRegionCodeRoots", "-XX:+VerifyAfterGC", // make sure that verification is run

 138     };
 139     runTest("-client", baseArguments);
 140     runTest("-server", baseArguments);
 141   }
 142 }
 143 
test/gc/g1/TestHumongousCodeCacheRoots.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File