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

Investigate memory access C2 optimizations

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: