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

Do not store Klass::_secondary_super_cache in CDS archive

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 22
    • hotspot
    • b20

      Klass::_secondary_super_cache can be updated as a result of calling Klass::is_subtype_of(). As a result, it's not safe to call Klass::is_subtype_of() after ArchiveBuilder has started copying objects, as that may cause ArchiveBuilder to miss the new value that's been written into _secondary_super_cache.

      In Leyden development, we had added some code that may call Klass::is_subtype_of() after ArchiveBuilder has started copying objects. Therefore, ArchiveBuilder should not follow _secondary_super_cache when coping objects. _secondary_super_cache should be reset to null when the Klass is written into the CDS archive.

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

              Created:
              Updated:
              Resolved: