RFR: 8277411: C2 fast_unlock intrinsic on AArch64 has unnecessary ownership check

Nick Gasson ngasson at openjdk.java.net
Wed Nov 24 10:16:07 UTC 2021


On Mon, 22 Nov 2021 11:04:37 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

> The AArch64 fast_unlock C2 code checks if the current thread owns the lock. This can be surprisingly expensive in workload where locking is contended. The check is however optional (helpful only for finding JNI code bugs), and indeed not emitted for x86_64. This patch removes the check on AArch64 as well.

Marked as reviewed by ngasson (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/6498


More information about the hotspot-compiler-dev mailing list