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

Metachunk headers have grown too large

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 11
    • 11
    • hotspot
    • None

      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.

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

              Created:
              Updated:
              Resolved: