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

C2: Intrinsify Reference.clear

XMLWordPrintable

    • b20

      JDK-8240696 added the native method for `Reference.clear`. The original patch skipped intrinsification of this method, because we thought `Reference.clear` is not on a performance sensitive path. However, it shows up prominently on simple locking benchmarks, especially when the `JVM_ReferenceClear` requires the WX transition, see attached profiler screenshot.

      So, it would be good to intrinsify `Reference.clear` at least in C2.

        1. 8329597-c1.patch
          3 kB
          Aleksey Shipilev
        2. macos-rrwl-bench-reference-clear.png
          392 kB
          Aleksey Shipilev

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: