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

CDS SharedArchiveConsistency tests fail after JDK-8296157

    XMLWordPrintable

Details

    • b23
    • Verified

    Description

      This was missing from JDK-8296157

      $ git diff
      diff --git a/test/lib/jdk/test/lib/cds/CDSArchiveUtils.java b/test/lib/jdk/test/lib/cds/CDSArchiveUtils.java
      index 69a7f947267..c51490a4a75 100644
      --- a/test/lib/jdk/test/lib/cds/CDSArchiveUtils.java
      +++ b/test/lib/jdk/test/lib/cds/CDSArchiveUtils.java
      @@ -100,7 +100,7 @@ public class CDSArchiveUtils {
                   offsetJvmIdent = wb.getCDSOffsetForName("FileMapHeader::_jvm_ident");
                   spOffsetCrc = wb.getCDSOffsetForName("CDSFileMapRegion::_crc");
                   spUsedOffset = wb.getCDSOffsetForName("CDSFileMapRegion::_used") - spOffsetCrc;
      - spOffset = wb.getCDSOffsetForName("CDSFileMapHeaderBase::_space[0]") - offsetMagic;
      + spOffset = wb.getCDSOffsetForName("CDSFileMapHeaderBase::_regions[0]") - offsetMagic;
                   // constants
                   staticMagic = wb.getCDSConstantForName("static_magic");
                   dynamicMagic = wb.getCDSConstantForName("dynamic_magic");


      Tests that failed:

      runtime/cds/appcds/SharedArchiveConsistency.java
      runtime/cds/appcds/dynamicArchive/ArchiveConsistency.java
      runtime/cds/appcds/dynamicArchive/TestAutoCreateSharedArchive.java

      Attachments

        Issue Links

          Activity

            People

              iklam Ioi Lam
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: