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

Anton Artemov aartemov at openjdk.org
Fri Nov 14 12:04:32 UTC 2025


On Thu, 13 Nov 2025 20:34:46 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

>> test/hotspot/jtreg/serviceability/jvmti/SuspendWithObjectMonitorWait/SuspendWithObjectMonitorWait.java line 31:
>> 
>>> 29:  * @library /test/lib
>>> 30:  * @compile SuspendWithObjectMonitorWait.java
>>> 31:  * @run main/othervm/native -agentlib:SuspendWithObjectMonitorWait SuspendWithObjectMonitorWait 1
>> 
>> Note that these passed values are overriding timeMax.
>
> The addition of the test number should have been done as a required parameter.
> That would push the optional timeMax parameter to be the optional second parameter.

Addressed in the latest commit. I did not figure out how to do it with jtreg, made it instead right in the test code.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27040#discussion_r2527248823


More information about the serviceability-dev mailing list