|
Hi David,
http://cr.openjdk.java.net/~dholmes/8231289/webrev/src/hotspot/share/services/threadService.cpp.frames.html Minor comment: 397 waitingToLockMonitor = jt->current_pending_monitor(); 398 if (waitingToLockMonitor == NULL) { 399 // we can only be blocked on a raw monitor if not blocked on an ObjectMonitor 400 waitingToLockRawMonitor = jt->current_pending_raw_monitor(); 401 } 402 if (concurrent_locks) { 403 waitingToLockBlocker = jt->current_park_blocker(); 404 }If I understand correctly, a thread can wait to lock only one of the three locks. So, we could rewrite the line 402 as: if (concurrent_locks && waitingToLockRawMonitor == NULL) { But I do not care much about this pre-existed logic. Maybe adding an assert after the line 404 would make sense: assert(waitingToLockRawMonitor == NULL || waitingToLockBlocker == NULL, "invariant"); http://cr.openjdk.java.net/~dholmes/8231289/webrev/src/hotspot/share/runtime/thread.hpp.frames.html 801 ParkEvent * _ParkEvent; // for Object monitors and JVMTI raw monitors
We have an enhancement about the ParkEvent shared between
ObjectMonitor's and RawMonitor's:https://bugs.openjdk.java.net/browse/JDK-8033399 Just wanted to hear your quick opinion if this enhancement still needs to be fixed. I see you comment in the bug report but confused why this is not a problem anymore. We may want to discuss it separately (e.g in the bug report comments). It would be good to also run the jdk com/sun/jdi tests. The jdwp agent library is using the JVMTI RawMonitor's. Thanks, Serguei On 9/23/19 22:09, David Holmes wrote: Bug: https://bugs.openjdk.java.net/browse/JDK-8231289 |
- RFR: 8231289: Disentangle JvmtiRawMonitor from ... David Holmes
- Re: RFR: 8231289: Disentangle JvmtiRawMoni... David Holmes
- Re: RFR: 8231289: Disentangle JvmtiRaw... [email protected]
- Re: RFR: 8231289: Disentangle JvmtiRaw... coleen . phillimore
- Re: RFR: 8231289: Disentangle Jvmt... David Holmes
- Re: RFR: 8231289: Disentangle ... coleen . phillimore
- Re: RFR: 8231289: Disenta... David Holmes
- Re: RFR: 8231289: Disentangle JvmtiRawMoni... [email protected]
- Re: RFR: 8231289: Disentangle JvmtiRawMoni... Daniel D. Daugherty
- Re: RFR: 8231289: Disentangle JvmtiRaw... David Holmes
- Re: RFR: 8231289: Disentangle Jvmt... Daniel D. Daugherty
- Re: RFR: 8231289: Disentangle ... David Holmes
- Re: RFR: 8231289: Disentangle Jvmt... [email protected]
