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

MemoryAcccess methods are missing @ForceInline annotations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      Static helpers in MemoryAccess do not have @ForceInline. As a result, when client code packs a lot of static accessors in a single, hot method, performances deteriorates, as C2 refuses to inline the static accessors.

      The same problem cannot be reproduced with plain var handle access.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: