Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8370258

Lilliput2: java/lang/instrument/GetObjectSizeIntrinsicsTest fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • repo-lilliput
    • hotspot
    • None

      The test needs a minor adjustment for Lilliput2, where the header size has compacted further since Lilliput1 when it was last fixed to deal with the compact header size.

      The test passes with the following change:

      ```
      --- a/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
      +++ b/test/jdk/java/lang/instrument/GetObjectSizeIntrinsicsTest.java
      @@ -315,7 +315,7 @@ public class GetObjectSizeIntrinsicsTest extends ASimpleInstrumentationTestCase
           static final int LARGE_OBJ_ARRAY_SIZE = (4096/(int)REF_SIZE)*1024*1024 + 1024;
       
           static final boolean CCP = WhiteBox.getWhiteBox().getBooleanVMFlag("UseCompressedClassPointers");
      - static final int ARRAY_HEADER_SIZE = CCP ? 16 : (Platform.is64bit() ? 20 : 16);
      + static final int ARRAY_HEADER_SIZE = COMPACT_HEADERS ? 8 : (CCP ? 16 : (Platform.is64bit() ? 20 : 16));
       
           final String mode;
       

      ```

            ysr Y. Ramakrishna
            ysr Y. Ramakrishna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: