Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237767 Field layout computation overhaul
  3. JDK-8239016

Release Note: Field Layout Computation Changed

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P3
    • Resolution: Delivered
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Verification:
      Verified

      Description

      The way that field layout is computed has been changed, with more aggressive optimizations to avoid unused gaps in instances. These new optimizations can be disabled by using a new VM option `-XX:-UseEmptySlotsInSupers`.

      For a limited time, it is possible to continue to use the old code to compute field layout with a new VM option `-XX:-UseNewFieldLayout`. However, this option has been deprecated in JDK 15 and the old code will be removed in a future release.

        Attachments

          Activity

            People

            Assignee:
            fparain Frederic Parain
            Reporter:
            fparain Frederic Parain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: