Details
Description
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. We should consider removing it on AArch64.
Attachments
Issue Links
- relates to
-
JDK-8277877 C2 fast_unlock intrinsic on riscv has unnecessary ownership check
-
- Resolved
-