Mercurial > hg > truffle
comparison test/runtime/CDSCompressedKPtrs/CDSCompressedKPtrs.java @ 12226:7944aba7ba41
8015107: NPG: Use consistent naming for metaspace concepts
Reviewed-by: coleenp, mgerdin, hseigel
author | ehelin |
---|---|
date | Mon, 12 Aug 2013 17:37:02 +0200 |
parents | 35b99e7e0af2 |
children |
comparison
equal
deleted
inserted
replaced
12186:313b724f8911 | 12226:7944aba7ba41 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /* | 24 /* |
25 * @test | 25 * @test |
26 * @bug 8003424 | 26 * @bug 8003424 |
27 * @summary Testing UseCompressedKlassPointers with CDS | 27 * @summary Testing UseCompressedClassPointers with CDS |
28 * @library /testlibrary | 28 * @library /testlibrary |
29 * @run main CDSCompressedKPtrs | 29 * @run main CDSCompressedKPtrs |
30 */ | 30 */ |
31 | 31 |
32 import com.oracle.java.testlibrary.*; | 32 import com.oracle.java.testlibrary.*; |
34 public class CDSCompressedKPtrs { | 34 public class CDSCompressedKPtrs { |
35 public static void main(String[] args) throws Exception { | 35 public static void main(String[] args) throws Exception { |
36 ProcessBuilder pb; | 36 ProcessBuilder pb; |
37 if (Platform.is64bit()) { | 37 if (Platform.is64bit()) { |
38 pb = ProcessTools.createJavaProcessBuilder( | 38 pb = ProcessTools.createJavaProcessBuilder( |
39 "-XX:+UseCompressedKlassPointers", "-XX:+UseCompressedOops", | 39 "-XX:+UseCompressedClassPointers", "-XX:+UseCompressedOops", |
40 "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./sample.jsa", "-Xshare:dump"); | 40 "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./sample.jsa", "-Xshare:dump"); |
41 OutputAnalyzer output = new OutputAnalyzer(pb.start()); | 41 OutputAnalyzer output = new OutputAnalyzer(pb.start()); |
42 try { | 42 try { |
43 output.shouldContain("Loading classes to share"); | 43 output.shouldContain("Loading classes to share"); |
44 output.shouldHaveExitValue(0); | 44 output.shouldHaveExitValue(0); |
45 | 45 |
46 pb = ProcessTools.createJavaProcessBuilder( | 46 pb = ProcessTools.createJavaProcessBuilder( |
47 "-XX:+UseCompressedKlassPointers", "-XX:+UseCompressedOops", | 47 "-XX:+UseCompressedClassPointers", "-XX:+UseCompressedOops", |
48 "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./sample.jsa", "-Xshare:on", "-version"); | 48 "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./sample.jsa", "-Xshare:on", "-version"); |
49 output = new OutputAnalyzer(pb.start()); | 49 output = new OutputAnalyzer(pb.start()); |
50 output.shouldContain("sharing"); | 50 output.shouldContain("sharing"); |
51 output.shouldHaveExitValue(0); | 51 output.shouldHaveExitValue(0); |
52 | 52 |