RFR: 8346792: serviceability/jvmti/vthread/GetThreadState/GetThreadState.java testObjectWaitMillis failed

David Holmes dholmes at openjdk.org
Thu Jan 16 06:36:36 UTC 2025


On Thu, 16 Jan 2025 06:12:23 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> > Another thing I noticed for the ObjectLocker::wait_uninterruptibly() case is that we don’t post the monitor_wait event but we do post the monitor_waited one.
> 
> The monitor_wait event is posted in the `jvm.cpp` `JVM_MonitorWait()` function:

That is not used for `ObjectLocker::wait_uninterruptibly()`.
 
I question whether any events should be posted for `ObjectLocker::wait_uninterruptibly()` as it is not part of any public/spec'd API but an internal implementation API. But changing that now may be problematic

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

PR Comment: https://git.openjdk.org/jdk/pull/23126#issuecomment-2594642515


More information about the hotspot-runtime-dev mailing list