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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 16
    • Affects Version/s: 16
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: