/openjdk7/hotspot/src/share/vm/runtime/ |
H A D | objectMonitor.inline.hpp | 28 inline intptr_t ObjectMonitor::is_entered(TRAPS) const { 35 inline markOop ObjectMonitor::header() const { 39 inline void ObjectMonitor::set_header(markOop hdr) { 43 inline intptr_t ObjectMonitor::count() const { 47 inline void ObjectMonitor::set_count(intptr_t count) { 51 inline intptr_t ObjectMonitor::waiters() const { 55 inline void* ObjectMonitor::owner() const { 59 inline void ObjectMonitor::clear() { 60 assert(_header, "Fatal logic error in ObjectMonitor header!"); 61 assert(_count == 0, "Fatal logic error in ObjectMonitor coun [all...] |
H A D | synchronizer.hpp | 35 class ObjectMonitor; 88 static ObjectMonitor * omAlloc (Thread * Self) ; 89 static void omRelease (Thread * Self, ObjectMonitor * m, bool FromPerThreadAlloc) ; 93 static ObjectMonitor* inflate(Thread * Self, oop obj); 95 static ObjectMonitor* inflate_helper(oop obj); 116 static int walk_monitor_list(ObjectMonitor** listheadp, 117 ObjectMonitor** FreeHeadp, 118 ObjectMonitor** FreeTailp); 119 static bool deflate_monitor(ObjectMonitor* mid, oop obj, ObjectMonitor** FreeHead [all...] |
H A D | objectMonitor.hpp | 54 void wait_reenter_begin(ObjectMonitor *mon); 55 void wait_reenter_end(ObjectMonitor *mon); 70 // The ObjectMonitor class is used to implement JavaMonitors which have 77 class ObjectMonitor { class 90 static int header_offset_in_bytes() { return offset_of(ObjectMonitor, _header); } 91 static int object_offset_in_bytes() { return offset_of(ObjectMonitor, _object); } 92 static int owner_offset_in_bytes() { return offset_of(ObjectMonitor, _owner); } 93 static int count_offset_in_bytes() { return offset_of(ObjectMonitor, _count); } 94 static int recursions_offset_in_bytes() { return offset_of(ObjectMonitor, _recursions); } 95 static int cxq_offset_in_bytes() { return offset_of(ObjectMonitor, _cx 140 ObjectMonitor() { function in class:ObjectMonitor [all...] |
H A D | synchronizer.cpp | 145 int dtrace_waited_probe(ObjectMonitor* monitor, Handle obj, Thread* thr) { 153 ObjectMonitor * ObjectSynchronizer::gBlockList = NULL ; 154 ObjectMonitor * volatile ObjectSynchronizer::gFreeList = NULL ; 155 ObjectMonitor * volatile ObjectSynchronizer::gOmInUseList = NULL ; 200 ObjectMonitor * m = mark->monitor() ; 291 ObjectMonitor* monitor = ObjectSynchronizer::inflate(THREAD, obj()); 304 ObjectMonitor* monitor = ObjectSynchronizer::inflate(THREAD, obj()); 330 ObjectMonitor* monitor = ObjectSynchronizer::inflate_helper(obj()); 345 ObjectMonitor* monitor = ObjectSynchronizer::inflate(THREAD, obj); 388 ObjectMonitor* monito [all...] |
H A D | objectMonitor.cpp | 153 int ObjectMonitor::Knob_Verbose = 0 ; 154 int ObjectMonitor::Knob_SpinLimit = 5000 ; // derived by an external tool - 300 bool ObjectMonitor::try_enter(Thread* THREAD) { 319 void ATTR ObjectMonitor::enter(TRAPS) { 454 if (ObjectMonitor::_sync_ContendedLockAttempts != NULL) { 455 ObjectMonitor::_sync_ContendedLockAttempts->inc() ; 463 int ObjectMonitor::TryLock (Thread * Self) { 482 void ATTR ObjectMonitor::EnterI (TRAPS) { 516 // Enqueue "Self" on ObjectMonitor's _cxq. 623 if (ObjectMonitor [all...] |
H A D | thread.hpp | 262 ObjectMonitor* _current_pending_monitor; // ObjectMonitor this thread 266 // ObjectMonitor on which this thread called Object.wait() 267 ObjectMonitor* _current_waiting_monitor; 271 ObjectMonitor* omFreeList; 274 ObjectMonitor* omInUseList; // SLL to track monitors in circulation 336 ObjectMonitor** omInUseList_addr() { return (ObjectMonitor **)&omInUseList; } 453 ObjectMonitor* current_pending_monitor() { 456 void set_current_pending_monitor(ObjectMonitor* monito [all...] |
H A D | vmStructs.cpp | 913 nonstatic_field(Thread, _current_pending_monitor, ObjectMonitor*) \ 915 nonstatic_field(Thread, _current_waiting_monitor, ObjectMonitor*) \ 1068 volatile_nonstatic_field(ObjectMonitor, _header, markOop) \ 1069 unchecked_nonstatic_field(ObjectMonitor, _object, sizeof(void *)) /* NOTE: no type */ \ 1070 unchecked_nonstatic_field(ObjectMonitor, _owner, sizeof(void *)) /* NOTE: no type */ \ 1071 volatile_nonstatic_field(ObjectMonitor, _count, intptr_t) \ 1072 volatile_nonstatic_field(ObjectMonitor, _waiters, intptr_t) \ 1073 volatile_nonstatic_field(ObjectMonitor, _recursions, intptr_t) \ 1074 nonstatic_field(ObjectMonitor, FreeNext, ObjectMonitor*) \ [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/ |
H A D | ObjectSynchronizer.java | 52 type = db.lookupType("ObjectMonitor"); 62 ObjectMonitor monitor = mark.monitor(); 94 block = new ObjectMonitor(blockAddr); 111 return new ObjectMonitor(addr); 118 private ObjectMonitor block;
|
H A D | Thread.java | 122 public ObjectMonitor getCurrentPendingMonitor() { 127 return new ObjectMonitor(monitorAddr); 130 public ObjectMonitor getCurrentWaitingMonitor() { 135 return new ObjectMonitor(monitorAddr); 152 /** Assistance for ObjectMonitor implementation */
|
H A D | ObjectMonitor.java | 33 public class ObjectMonitor extends VMObject { class in inherits:VMObject 44 Type type = db.lookupType("ObjectMonitor"); 58 public ObjectMonitor(Address addr) { method in class:ObjectMonitor
|
H A D | Threads.java | 191 public JavaThread owningThreadFromMonitor(ObjectMonitor monitor) { 197 public List getPendingThreads(ObjectMonitor monitor) { 203 ObjectMonitor pending = thread.getCurrentPendingMonitor(); 212 public List getWaitingThreads(ObjectMonitor monitor) { 215 ObjectMonitor waiting = thread.getCurrentWaitingMonitor();
|
H A D | DeadlockDetector.java | 51 ObjectMonitor waitingToLockMonitor = null; 121 waitingToLockMonitor = (ObjectMonitor)currentThread.getCurrentPendingMonitor(); 171 ObjectMonitor waitingToLockMonitor = null;
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/ |
H A D | MonitorCacheDumpPanel.java | 64 private static void dumpMonitor(PrintStream tty, ObjectMonitor mon, boolean raw) { 65 tty.print("ObjectMonitor@" + mon.getAddress()); 98 ObjectMonitor mon; 100 mon = (ObjectMonitor)i.next();
|
/openjdk7/hotspot/src/share/vm/oops/ |
H A D | markOop.hpp | 101 class ObjectMonitor; 284 ObjectMonitor* monitor() const { 287 return (ObjectMonitor*) (value() ^ monitor_value); 317 static markOop encode(ObjectMonitor* monitor) {
|
/openjdk7/hotspot/src/share/vm/prims/ |
H A D | jvmtiRawMonitor.hpp | 36 // Wrapper for ObjectMonitor class that saves the Monitor's name 39 class JvmtiRawMonitor : public ObjectMonitor {
|
H A D | jvmtiExport.hpp | 298 static void post_monitor_contended_enter(JavaThread *thread, ObjectMonitor *obj_mntr); 299 static void post_monitor_contended_entered(JavaThread *thread, ObjectMonitor *obj_mntr); 301 static void post_monitor_waited(JavaThread *thread, ObjectMonitor *obj_mntr, jboolean timed_out);
|
H A D | jvmtiEnv.cpp | 2992 assert(r == ObjectMonitor::OM_OK, "raw_exit should have worked"); 2993 if (r != ObjectMonitor::OM_OK) { // robustness 3019 // No JavaThreads exist so ObjectMonitor enter cannot be 3061 assert(r == ObjectMonitor::OM_OK, "raw_enter should have worked"); 3070 if (r != ObjectMonitor::OM_OK) { // robustness 3108 if (r == ObjectMonitor::OM_ILLEGAL_MONITOR_STATE) { 3111 assert(r == ObjectMonitor::OM_OK, "raw_exit should have worked"); 3112 if (r != ObjectMonitor::OM_OK) { // robustness 3166 case ObjectMonitor::OM_INTERRUPTED: 3168 case ObjectMonitor [all...] |
H A D | jvmtiEnvBase.cpp | 661 ObjectMonitor *mon = java_thread->current_waiting_monitor(); 666 // The thread is trying to enter() or raw_enter() an ObjectMonitor. 668 // If obj == NULL, then ObjectMonitor is raw which doesn't count 671 // implied else: no contended ObjectMonitor 742 ObjectMonitor *mon = java_thread->current_waiting_monitor(); 750 ObjectMonitor *mon = java_thread->current_pending_monitor(); 954 ObjectMonitor *mon = NULL; 1441 JvmtiMonitorClosure::do_monitor(ObjectMonitor* mon) {
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/soql/ |
H A D | JSJavaThread.java | 119 ObjectMonitor waitingMonitor = jthread.getCurrentWaitingMonitor(); 126 ObjectMonitor pendingMonitor = jthread.getCurrentPendingMonitor();
|
/openjdk7/hotspot/src/share/vm/memory/ |
H A D | iterator.hpp | 234 class ObjectMonitor; 239 virtual void do_monitor(ObjectMonitor* m) = 0;
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/ |
H A D | ObjectReferenceImpl.java | 42 import sun.jvm.hotspot.runtime.ObjectMonitor; 264 private List getPendingThreads(ObjectMonitor mon) { 269 private List getWaitingThreads(ObjectMonitor mon) { 281 ObjectMonitor mon = null; 339 // ObjectMonitor::_queue. But we don't have this struct exposed
|
H A D | ThreadReferenceImpl.java | 35 import sun.jvm.hotspot.runtime.ObjectMonitor; 285 ObjectMonitor waitingMonitor = myJavaThread.getCurrentWaitingMonitor(); 286 ObjectMonitor pendingMonitor = myJavaThread.getCurrentPendingMonitor(); 363 ObjectMonitor mon = myJavaThread.getCurrentWaitingMonitor(); 369 // If obj == NULL, then ObjectMonitor is raw which doesn't count 373 // no contended ObjectMonitor
|
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/ |
H A D | Mark.java | 209 public ObjectMonitor monitor() { 215 return new ObjectMonitor(monAddr); 248 // static markOop encode(ObjectMonitor* monitor) {
|
/openjdk7/hotspot/src/share/vm/services/ |
H A D | threadService.cpp | 149 ObjectMonitor *wait_obj = thread->current_waiting_monitor(); 157 ObjectMonitor *enter_obj = thread->current_pending_monitor(); 159 // thread is trying to enter() or raw_enter() an ObjectMonitor. 162 // If obj == NULL, then ObjectMonitor is raw which doesn't count. 293 ObjectMonitor* waitingToLockMonitor = NULL; 323 waitingToLockMonitor = (ObjectMonitor*)jt->current_pending_monitor(); 373 waitingToLockMonitor = (ObjectMonitor*)currentThread->current_pending_monitor(); 482 void do_monitor(ObjectMonitor* mid) { 820 ObjectMonitor* waitingToLockMonitor; 825 waitingToLockMonitor = (ObjectMonitor*)currentThrea [all...] |
H A D | threadService.hpp | 520 static bool wait_reenter_begin(JavaThread *java_thread, ObjectMonitor *obj_m) { 536 JavaThreadBlockedOnMonitorEnterState(JavaThread *java_thread, ObjectMonitor *obj_m) :
|