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

Metachunk headers have grown too large

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:

      Description

      8198423 added some fields to the Metachunk header. So it has gotten a bit fat, measuring 64byte on 64bit platforms (up from former 16 byte). Worst case, it amounts to ca 6% of the total chunksize of specialized chunks. Since having a large number of specialized chunks usually means we are already in a pathological situation (e.g. reflection inflation), it makes sense to shave off some space off the headers, in order to ease the pain.

      When reviewing 8198423 we decided that the additional information is useful and should be kept for release builds too. However, the header can be shrunk significantly just by packing the information better. All the additional information could fit into a single 64bit word, so in total the header could be compacted to 24 bytes. The information are accessed rarely enough that packing should not have significant performance impact.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: