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

Investigate memory access C2 optimizations

XMLWordPrintable

      The var-handle based memory access API is currently slower than a plain Unsafe access. This seems to be caused by two factors:

      * the JIT has trouble in hoisting Scope liveness checks outside a loop

      * when addresses are non-constant (e.g. because memory is allocated and accessed inside a try-with-resources), it seems like bound checks are also not optimized.

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

              Created:
              Updated:
              Resolved: