test/compiler/codecache/CheckSegmentedCodeCache.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/codecache

test/compiler/codecache/CheckSegmentedCodeCache.java

Print this page




 116                                                "-XX:+PrintCodeCache", "-version");
 117     verifyCodeHeapNotExists(pb, PROFILED);
 118     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 119                                                "-XX:TieredStopAtLevel=1",
 120                                                "-XX:+PrintCodeCache", "-version");
 121     verifyCodeHeapNotExists(pb, PROFILED);
 122 
 123     // Fails with too small non-nmethod code heap size
 124     pb = ProcessTools.createJavaProcessBuilder("-XX:NonNMethodCodeHeapSize=100K");
 125     failsWith(pb, "Invalid NonNMethodCodeHeapSize");
 126 
 127     // Fails if code heap sizes do not add up
 128     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 129                                                "-XX:ReservedCodeCacheSize=10M",
 130                                                "-XX:NonNMethodCodeHeapSize=5M",
 131                                                "-XX:ProfiledCodeHeapSize=5M",
 132                                                "-XX:NonProfiledCodeHeapSize=5M");
 133     failsWith(pb, "Invalid code heap sizes");
 134 
 135     // Fails if not enough space for VM internal code

 136     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 137                                                "-XX:ReservedCodeCacheSize=1700K",
 138                                                "-XX:InitialCodeCacheSize=100K");
 139     failsWith(pb, "Not enough space in non-nmethod code heap to run VM");
 140   }
 141 }


 116                                                "-XX:+PrintCodeCache", "-version");
 117     verifyCodeHeapNotExists(pb, PROFILED);
 118     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 119                                                "-XX:TieredStopAtLevel=1",
 120                                                "-XX:+PrintCodeCache", "-version");
 121     verifyCodeHeapNotExists(pb, PROFILED);
 122 
 123     // Fails with too small non-nmethod code heap size
 124     pb = ProcessTools.createJavaProcessBuilder("-XX:NonNMethodCodeHeapSize=100K");
 125     failsWith(pb, "Invalid NonNMethodCodeHeapSize");
 126 
 127     // Fails if code heap sizes do not add up
 128     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 129                                                "-XX:ReservedCodeCacheSize=10M",
 130                                                "-XX:NonNMethodCodeHeapSize=5M",
 131                                                "-XX:ProfiledCodeHeapSize=5M",
 132                                                "-XX:NonProfiledCodeHeapSize=5M");
 133     failsWith(pb, "Invalid code heap sizes");
 134 
 135     // Fails if not enough space for VM internal code
 136     int minSize = Platform.isDebugBuild() ? 1700 : 900;
 137     pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
 138                                                "-XX:ReservedCodeCacheSize=" + minSize + "K",
 139                                                "-XX:InitialCodeCacheSize=100K");
 140     failsWith(pb, "Not enough space in non-nmethod code heap to run VM");
 141   }
 142 }
test/compiler/codecache/CheckSegmentedCodeCache.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File