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

Type profile pollution occurs when memory segments of different kinds are used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b29

      Backports

        Description

        The Foreign Memory Access API supports several kind of segments:

        * off-heap (base == null)
        * on-heap (base == X[]), for each primitive X (except boolean)

        If static accessor methods in MemoryAccess are called repeatedly with different segment kinds, optimizations of unsafe access are lost and performance degrades significantly.

        Same issue occurs when memory access var handles are used directly.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: