test/runtime/CompressedOops/CompressedKlassPointerAndOops.java

changeset 5694
7944aba7ba41
parent 5473
81e0f17ade64
child 6876
710a3c8b516e
equal deleted inserted replaced
5654:313b724f8911 5694:7944aba7ba41
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @bug 8000968 26 * @bug 8000968
27 * @key regression 27 * @key regression
28 * @summary NPG: UseCompressedKlassPointers asserts with ObjectAlignmentInBytes=32 28 * @summary NPG: UseCompressedClassPointers asserts with ObjectAlignmentInBytes=32
29 * @library /testlibrary 29 * @library /testlibrary
30 */ 30 */
31 31
32 import com.oracle.java.testlibrary.*; 32 import com.oracle.java.testlibrary.*;
33 33
50 private static void runWithAlignment(int alignment) throws Exception { 50 private static void runWithAlignment(int alignment) throws Exception {
51 ProcessBuilder pb; 51 ProcessBuilder pb;
52 OutputAnalyzer output; 52 OutputAnalyzer output;
53 53
54 pb = ProcessTools.createJavaProcessBuilder( 54 pb = ProcessTools.createJavaProcessBuilder(
55 "-XX:+UseCompressedKlassPointers", 55 "-XX:+UseCompressedClassPointers",
56 "-XX:+UseCompressedOops", 56 "-XX:+UseCompressedOops",
57 "-XX:ObjectAlignmentInBytes=" + alignment, 57 "-XX:ObjectAlignmentInBytes=" + alignment,
58 "-version"); 58 "-version");
59 59
60 output = new OutputAnalyzer(pb.start()); 60 output = new OutputAnalyzer(pb.start());

mercurial