RFR: 8328741: serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java failed with unexpected owner

Serguei Spitsyn sspitsyn at openjdk.org
Mon Apr 15 11:36:05 UTC 2024


This is the test issue. The `WaitingPT3` thread posted the `MonitorWait` event but has not released the `lockCheck` monitor yet. It has been fixed to wait for each `WaitingTask` thread to really reach the `WAITING` state. The same approach is used for `EnteringTask` threads. It has been fixed to wait for each `EnteringTask` thread to reach the `BLOCKED_ON_MONITOR` state.

Testing:
 - Reran the test `serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java` locally
 - TBD: submit the mach5 tiers 1-6 as well

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

Commit messages:
 - remove trailing spaces for a couple of lines
 - 8328741: serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java failed with unexpected owner

Changes: https://git.openjdk.org/jdk/pull/18778/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18778&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328741
  Stats: 90 lines in 2 files changed: 11 ins; 67 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/18778.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18778/head:pull/18778

PR: https://git.openjdk.org/jdk/pull/18778


More information about the serviceability-dev mailing list