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

Improve startup of memory access var handles by simplifying combinator chains

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 24
    • 24
    • core-libs
    • None

    Description

      The code that generated memory access var handles given a call to `MemoryLayout::varHandle(PathElement...)` is very general. As such, while it works on any possible selected chain of path elements, it's also poorly optimized for the common cases (e.g. simple struct field access). In such common cases, the runtime generates too many lambda forms, which end up degrading startup.

      Attachments

        Issue Links

          Activity

            People

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: