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

[lworld] Value type check(guard) causes not working lock coarsening optimization.

    Details

      Description

      Valhalla adds a check if object is a value type before synchronization. As result it causes not working lock coarsening optimization.
      For example: performance of small uncontended locks got 2x times slowdown.
      Benchmarks: http://cr.openjdk.java.net/~skuksenko/valhalla/legacy/benchmarks/

      compare: Lock: singleLock vs Lock.doubleLock

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                roland Roland Westrelin
                Reporter:
                skuksenko Sergey Kuksenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: