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

Improve startup of memory access var handles by simplifying combinator chains

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: