Lilliput2: java/lang/instrument/GetObjectSizeIntrinsicsTest fails

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: repo-lilliput
    • Component/s: 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;
       

      ```

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

              Created:
              Updated:
              Resolved: