RFR: 8324881: ObjectSynchronizer::inflate(Thread* current...) is invoked for non-current thread [v5]

Richard Reingruber rrich at openjdk.org
Fri Feb 2 15:00:10 UTC 2024


On Fri, 2 Feb 2024 09:14:58 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:

> Given the extra test that @reinrich provided that is exactly what occurs. A nested eliminated lock is re-locked. But the lock is already escaped and contended by another thread.

We didn't reach there with LM_LIGHTWEIGHT. The lock got inflated during warm-up because of the recursive monitorenter in the interpreter. The owner was set to the current thread then. I've improved the test to use a new instance after warm-up. If you want you can cherry-pick here: https://github.com/reinrich/jdk/commit/c28181d585e5ceeaa34e7e6afb4311d59cf990b2

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17626#discussion_r1476165717


More information about the hotspot-dev mailing list