RFR: 8324881: ObjectSynchronizer::inflate(Thread* current...) is invoked for non-current thread [v3]
Axel Boldt-Christmas
aboldtch at openjdk.org
Thu Feb 1 09:44:03 UTC 2024
On Thu, 1 Feb 2024 09:19:20 GMT, Richard Reingruber <rrich at openjdk.org> wrote:
> I think you could also return false in `ObjectMonitor::enter()` [about here](https://github.com/openjdk/jdk/blob/68206b533b09e07e4d556df794414ed4538889c0/src/hotspot/share/runtime/objectMonitor.cpp#L337) if the locking thread is not the current thread. The caller `ObjectSynchronizer::enter()` would then allocate a new monitor and retry.
That is an alternative. Let us see what others think. I prefer not changing `ObjectMonitor::enter`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17626#issuecomment-1920905598
More information about the hotspot-dev
mailing list