3 ms·
A technical detail. Monitors (synchronized) record their owners as the OS thread, which makes the VM not know whether the carrier or the virtual thread owns a m
by pron 4y ago
A technical detail. Monitors (synchronized) record their owners as the OS thread, which makes the VM not know whether the carrier or the virtual thread owns a monitor, as they both share the same OS thread.
- CHY872 4y agoFor any future readers, I think this is the bug: https://bugs.openjdk.java.net/browse/JDK-8281642 https://bugs.openjdk.java.net/browse/JDK-8281642