Contended classes can leave unused alignment padding

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 26
    • Component/s: hotspot

      When placing fields for a contended class, if the first field placed needs alignment padding, the added padding cannot be reused by other fields that could potentially fit into that space. Unlike other gaps, this one is never checked for reuse.

      For contended classes (and contended groups of members), we should check the whole contended range instead of stopping early, so any alignment padding inside the range can be considered for later fields.

            Assignee:
            Casper Norrbin
            Reporter:
            Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: