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

[lworld] Value type check/guard before synchronization is not hoisted out of the loop

XMLWordPrintable

      Value type check/guard before synchronization is not hoisted out of the loop even if it's possible (locking object is invariant to the loop).
      Some benchmarks show up to 30% perf regression.

      Benchmark location: http://cr.openjdk.java.net/~skuksenko/valhalla/legacy/benchmarks/

      Benchmark: Lock.loopLock

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

              Created:
              Updated:
              Resolved: