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

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

XMLWordPrintable

      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

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

              Created:
              Updated:
              Resolved: