RFR: 8366659: ObjectMonitor::wait() can deadlock with a suspension request [v17]

Serguei Spitsyn sspitsyn at openjdk.org
Fri Nov 21 11:42:24 UTC 2025


On Fri, 21 Nov 2025 09:11:52 GMT, Anton Artemov <aartemov at openjdk.org> wrote:

> is the existing test SuspendWithObjectMonitorWait demonstrating a real-world scenario?

It does not look as such. There could be some motivation to write it however, e.g. checking some invariants. At least, it seems this test does not enforce any strict rules on the OM implementation and JVMTI events + suspend/resume. :)
New tests do not allow for OM implementation to put `MonitorWaited` event notification at a right spot. Otherwise, I would not object against them.

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

PR Comment: https://git.openjdk.org/jdk/pull/27040#issuecomment-3562647847


More information about the serviceability-dev mailing list