hotspot/test/runtime/CompressedOops/CompressedKlassPointerAndOops.java
changeset 19979 ebe1dbb6e1aa
parent 19143 8a28dba4b0c4
child 29678 dd2f3932c21e
equal deleted inserted replaced
19766:b6d8784a1037 19979:ebe1dbb6e1aa
    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());