< prev index next >

test/hotspot/jtreg/runtime/CompressedOops/CompressedClassPointers.java

Print this page
rev 59103 : imported patch hotspot


 125 
 126           pb = ProcessTools.createJavaProcessBuilder(
 127             "-XX:+UnlockDiagnosticVMOptions",
 128             "-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
 129             "-Xmx128m",
 130             "-XX:SharedBaseAddress=8g",
 131             "-XX:+PrintCompressedOopsMode",
 132             "-Xshare:on",
 133             "-version");
 134           output = new OutputAnalyzer(pb.start());
 135           output.shouldContain("sharing");
 136           output.shouldHaveExitValue(0);
 137 
 138         } catch (RuntimeException e) {
 139           output.shouldContain("Unable to use shared archive");
 140           output.shouldHaveExitValue(1);
 141         }
 142     }
 143 
 144     public static void main(String[] args) throws Exception {
 145         if (Platform.isSolaris()) {
 146              String name = System.getProperty("os.version");
 147              if (name.equals("5.10")) {
 148                 throw new SkippedException("Solaris 10 can't mmap compressed oops space without a base");
 149              }
 150         }
 151         smallHeapTest();
 152         smallHeapTestWith1G();
 153         largeHeapTest();
 154         largePagesTest();
 155         heapBaseMinAddressTest();
 156         sharingTest();
 157     }
 158 }


 125 
 126           pb = ProcessTools.createJavaProcessBuilder(
 127             "-XX:+UnlockDiagnosticVMOptions",
 128             "-XX:SharedArchiveFile=./CompressedClassPointers.jsa",
 129             "-Xmx128m",
 130             "-XX:SharedBaseAddress=8g",
 131             "-XX:+PrintCompressedOopsMode",
 132             "-Xshare:on",
 133             "-version");
 134           output = new OutputAnalyzer(pb.start());
 135           output.shouldContain("sharing");
 136           output.shouldHaveExitValue(0);
 137 
 138         } catch (RuntimeException e) {
 139           output.shouldContain("Unable to use shared archive");
 140           output.shouldHaveExitValue(1);
 141         }
 142     }
 143 
 144     public static void main(String[] args) throws Exception {






 145         smallHeapTest();
 146         smallHeapTestWith1G();
 147         largeHeapTest();
 148         largePagesTest();
 149         heapBaseMinAddressTest();
 150         sharingTest();
 151     }
 152 }
< prev index next >