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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 16
    • 16
    • core-libs
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: