RFR: 8319799: Recursive lightweight locking: x86 implementation [v9]
Axel Boldt-Christmas
aboldtch at openjdk.org
Tue Jan 23 14:41:26 UTC 2024
On Tue, 23 Jan 2024 13:53:26 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> Is the lock definitely never inflated due to hash code in this case now?
It never inflates a locked object. The hash code race that may re-inflate a monitor is with deflation. Where it tries to install a hash code on an inflated monitor, but the monitor gets deflated between the two reads of the markWord, the thread that tries to install the hash code will create a new ObjectMonitor. [JDK-8323724](https://bugs.openjdk.org/browse/JDK-8323724) RFE is created for that issue.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16607#discussion_r1463380891
More information about the hotspot-dev
mailing list