Using the ThreadID as the owner for the ObjectMonitor makes it unambiguous for Loom, as the ThreadID is unique and the JavaThread can have different virtual threads mounted on it (ie so is not useful).
- duplicates
-
JDK-8338383 Implement JEP 491: Synchronize Virtual Threads without Pinning
- Resolved
- relates to
-
JDK-8320323 ObjectWaiter queue for ObjectMonitors don't support virtual threads
- Closed
-
JDK-8338383 Implement JEP 491: Synchronize Virtual Threads without Pinning
- Resolved
-
JDK-8320317 ObjectMonitor NotRunnable is not really an optimization
- Resolved