/art/runtime/ |
D | monitor_pool.cc | 71 Monitor* last = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(chunk) + in AllocateChunk() 78 Monitor* before = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(last) - in AllocateChunk() 87 DCHECK(last == reinterpret_cast<Monitor*>(chunk)); in AllocateChunk() 108 Monitor* MonitorPool::CreateMonitorInPool(Thread* self, in CreateMonitorInPool() 122 Monitor* mon_uninitialized = first_free_; in CreateMonitorInPool() 129 Monitor* monitor = new(mon_uninitialized) Monitor(self, owner, obj, hash_code, id); in CreateMonitorInPool() 134 void MonitorPool::ReleaseMonitorToPool(Thread* self, Monitor* monitor) { in ReleaseMonitorToPool() 143 monitor->~Monitor(); in ReleaseMonitorToPool() 154 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
|
D | monitor_pool.h | 45 static Monitor* CreateMonitor(Thread* self, in CreateMonitor() 51 Monitor* mon = new Monitor(self, owner, obj, hash_code); in CreateMonitor() 59 static void ReleaseMonitor(Thread* self, Monitor* monitor) { in ReleaseMonitor() 77 static Monitor* MonitorFromMonitorId(MonitorId mon_id) { in MonitorFromMonitorId() 79 return reinterpret_cast<Monitor*>(mon_id << LockWord::kMonitorIdAlignmentShift); in MonitorFromMonitorId() 85 static MonitorId MonitorIdFromMonitor(Monitor* mon) { in MonitorIdFromMonitor() 93 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { in ComputeMonitorId() 128 Monitor* CreateMonitorInPool(Thread* self, 134 void ReleaseMonitorToPool(Thread* self, Monitor* monitor); 141 Monitor* LookupMonitor(MonitorId mon_id) { in LookupMonitor() [all …]
|
D | monitor_pool_test.cc | 39 static void VerifyMonitor(Monitor* mon, Thread* self) { in VerifyMonitor() 49 std::vector<Monitor*> monitors; in TEST_F() 74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); in TEST_F() 81 Monitor* mon = monitors[index]; in TEST_F() 97 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, in TEST_F() 105 for (Monitor* mon : monitors) { in TEST_F() 113 Monitor* mon = monitors[index]; in TEST_F() 121 for (Monitor* mon : monitors) { in TEST_F()
|
D | monitor.cc | 79 uint32_t Monitor::lock_profiling_threshold_ = 0; 80 uint32_t Monitor::stack_dump_lock_profiling_threshold_ = 0; 82 void Monitor::Init(uint32_t lock_profiling_threshold, in Init() 92 Monitor::Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code) in Monitor() function in art::Monitor 115 Monitor::Monitor(Thread* self, in Monitor() function in art::Monitor 141 int32_t Monitor::GetHashCode() { in GetHashCode() 153 bool Monitor::Install(Thread* self) { in Install() 229 Monitor::~Monitor() { in ~Monitor() 233 void Monitor::AppendToWaitSet(Thread* thread) { in AppendToWaitSet() 251 void Monitor::RemoveFromWaitSet(Thread *thread) { in RemoveFromWaitSet() [all …]
|
D | monitor.h | 57 class Monitor { 63 ~Monitor(); 173 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code) 175 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code, MonitorId id) 212 Monitor* mon) 336 Monitor* next_free_ GUARDED_BY(Locks::allocated_monitor_ids_lock_); 343 DISALLOW_COPY_AND_ASSIGN(Monitor); 351 void Add(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!monitor_list_lock_); 362 typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors; 374 friend class Monitor; variable
|
D | runtime_callbacks.h | 44 class Monitor; variable 109 virtual void MonitorContendedLocking(Monitor* mon) REQUIRES_SHARED(Locks::mutator_lock_) = 0; 111 virtual void MonitorContendedLocked(Monitor* mon) REQUIRES_SHARED(Locks::mutator_lock_) = 0; 119 virtual void MonitorWaitFinished(Monitor* m, bool timed_out) 208 void MonitorContendedLocking(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_); 209 void MonitorContendedLocked(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_); 212 void MonitorWaitFinished(Monitor* m, bool timed_out)
|
D | monitor_objects_stack_visitor.cc | 46 ThreadState state = Monitor::FetchState(GetThread(), in VisitFrame() 72 Monitor::VisitLocks(this, VisitLockedObject, this, false); in VisitFrame()
|
D | lock_word-inl.h | 37 inline Monitor* LockWord::FatLockMonitor() const { in FatLockMonitor() 53 inline LockWord::LockWord(Monitor* mon, uint32_t gc_state) in LockWord()
|
D | monitor_linux.cc | 21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, ArtMethod*, uint32_t) { in LogContentionEvent()
|
D | monitor-inl.h | 28 inline ObjPtr<mirror::Object> Monitor::GetObject() REQUIRES_SHARED(Locks::mutator_lock_) { in GetObject()
|
D | lock_word.h | 33 class Monitor; variable 241 Monitor* FatLockMonitor() const; 247 LockWord(Monitor* mon, uint32_t gc_state);
|
D | monitor_test.cc | 45 std::unique_ptr<Monitor> monitor_; 104 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run() 149 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run() 194 Monitor::Wait(self, monitor_test_->object_.Get(), 10, 0, true, in Run()
|
D | object_lock.cc | 38 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting); in WaitIgnoringInterrupts()
|
D | monitor_android.cc | 33 void Monitor::LogContentionEvent(Thread* self, in LogContentionEvent()
|
D | runtime_callbacks.cc | 142 void RuntimeCallbacks::MonitorContendedLocking(Monitor* m) { in MonitorContendedLocking() 148 void RuntimeCallbacks::MonitorContendedLocked(Monitor* m) { in MonitorContendedLocked() 160 void RuntimeCallbacks::MonitorWaitFinished(Monitor* m, bool timeout) { in MonitorWaitFinished()
|
D | runtime_callbacks_test.cc | 464 void MonitorContendedLocking(Monitor* mon ATTRIBUTE_UNUSED) override in MonitorContendedLocking() 467 void MonitorContendedLocked(Monitor* mon ATTRIBUTE_UNUSED) override in MonitorContendedLocked() 477 void MonitorWaitFinished(Monitor* m, bool timed_out ATTRIBUTE_UNUSED) override in MonitorWaitFinished() 507 Monitor::Wait( in TEST_F()
|
/art/test/596-monitor-inflation/ |
D | expected.txt | 2 Monitor list grew by at least 4000 monitors 3 Monitor list shrank correctly
|
/art/test/003-omnibus-opcodes/src/ |
D | Monitor.java | 21 public class Monitor { class 53 new Monitor().subTest(); in run()
|
D | Main.java | 44 Monitor.run(); in run()
|
/art/test/167-visit-locks/ |
D | visit_locks.cc | 56 Monitor::VisitLocks(this, Callback, nullptr); in Java_Main_testVisitLocks()
|
/art/test/003-omnibus-opcodes/ |
D | expected.txt | 41 Monitor.run
|
/art/test/1932-monitor-events-misc/ |
D | expected.txt | 62 Monitor usage in MonitorEnter: MonitorUsage{ monitor: NamedLock[Lock testMonitorInfoInEvents], owne… 64 Monitor usage in MonitorEntered: MonitorUsage{ monitor: NamedLock[Lock testMonitorInfoInEvents], ow… 66 Monitor usage in MonitorWait: MonitorUsage{ monitor: NamedLock[Lock testMonitorInfoInEvents], owner… 68 Monitor usage in MonitorWaited: MonitorUsage{ monitor: NamedLock[Lock testMonitorInfoInEvents], own…
|
/art/runtime/mirror/ |
D | object-inl.h | 79 return Monitor::GetLockOwnerThreadId(this); in GetLockOwnerThreadId() 83 return Monitor::MonitorEnter(self, this, /*trylock=*/false); in MonitorEnter() 87 return Monitor::MonitorEnter(self, this, /*trylock=*/true); in MonitorTryEnter() 91 return Monitor::MonitorExit(self, this); in MonitorExit() 95 Monitor::Notify(self, this); in Notify() 99 Monitor::NotifyAll(self, this); in NotifyAll() 103 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
|
D | object.cc | 212 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); in IdentityHashCode() 219 Monitor* monitor = lw.FatLockMonitor(); in IdentityHashCode()
|
/art/runtime/native/ |
D | java_lang_Thread.cc | 184 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|