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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • 16
    • core-libs
    • None
    • b29

        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.

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

                Created:
                Updated:
                Resolved: