Home
last modified time | relevance | path

Searched refs:Monitor (Results 1 – 25 of 37) sorted by relevance

12

/art/runtime/
Dmonitor_pool.cc71 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()
Dmonitor_pool.h45 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 …]
Dmonitor_pool_test.cc39 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()
Dmonitor.cc80 uint32_t Monitor::lock_profiling_threshold_ = 0;
81 uint32_t Monitor::stack_dump_lock_profiling_threshold_ = 0;
83 void Monitor::Init(uint32_t lock_profiling_threshold, in Init()
93 Monitor::Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code) in Monitor() function in art::Monitor
118 Monitor::Monitor(Thread* self, in Monitor() function in art::Monitor
146 int32_t Monitor::GetHashCode() { in GetHashCode()
158 void Monitor::SetLockingMethod(Thread* owner) { in SetLockingMethod()
204 void Monitor::SetLockingMethodNoProxy(Thread *owner) { in SetLockingMethodNoProxy()
213 bool Monitor::Install(Thread* self) NO_THREAD_SAFETY_ANALYSIS { in Install()
274 Monitor::~Monitor() { in ~Monitor()
[all …]
Dmonitor-inl.h28 inline ObjPtr<mirror::Object> Monitor::GetObject() REQUIRES_SHARED(Locks::mutator_lock_) { in GetObject()
33 void Monitor::CheckLockOwnerRequest(Thread* self) { in CheckLockOwnerRequest()
43 uintptr_t Monitor::LockOwnerInfoChecksum(ArtMethod* m, uint32_t dex_pc, Thread* t) { in LockOwnerInfoChecksum()
49 void Monitor::SetLockOwnerInfo(ArtMethod* method, uint32_t dex_pc, Thread* t) { in SetLockOwnerInfo()
57 void Monitor::GetLockOwnerInfo(/*out*/ArtMethod** method, /*out*/uint32_t* dex_pc, in GetLockOwnerInfo()
Dmonitor.h58 class Monitor {
64 ~Monitor();
176 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code)
178 Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code, MonitorId id)
218 Monitor* mon)
421 Monitor* next_free_ GUARDED_BY(Locks::allocated_monitor_ids_lock_);
428 DISALLOW_COPY_AND_ASSIGN(Monitor);
436 void Add(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!monitor_list_lock_);
447 typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors;
459 friend class Monitor; variable
Druntime_callbacks.h44 class Monitor; variable
110 virtual void MonitorContendedLocking(Monitor* mon) REQUIRES_SHARED(Locks::mutator_lock_) = 0;
112 virtual void MonitorContendedLocked(Monitor* mon) REQUIRES_SHARED(Locks::mutator_lock_) = 0;
120 virtual void MonitorWaitFinished(Monitor* m, bool timed_out)
222 void MonitorContendedLocking(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_);
223 void MonitorContendedLocked(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_);
226 void MonitorWaitFinished(Monitor* m, bool timed_out)
Dmonitor_objects_stack_visitor.cc46 ThreadState state = Monitor::FetchState(GetThread(), in VisitFrame()
72 Monitor::VisitLocks(this, VisitLockedObject, this, false); in VisitFrame()
Dlock_word-inl.h37 inline Monitor* LockWord::FatLockMonitor() const { in FatLockMonitor()
53 inline LockWord::LockWord(Monitor* mon, uint32_t gc_state) in LockWord()
Dmonitor_linux.cc21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, ArtMethod*, uint32_t) { in LogContentionEvent()
Dlock_word.h33 class Monitor; variable
244 Monitor* FatLockMonitor() const;
250 LockWord(Monitor* mon, uint32_t gc_state);
Dmonitor_test.cc45 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()
Dobject_lock.cc38 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting); in WaitIgnoringInterrupts()
Dmonitor_android.cc33 void Monitor::LogContentionEvent(Thread* self, in LogContentionEvent()
Druntime_callbacks.cc142 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()
Druntime_callbacks_test.cc464 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/
Dexpected.txt2 Monitor list grew by at least 4000 monitors
3 Monitor list shrank correctly
/art/test/003-omnibus-opcodes/src/
DMonitor.java21 public class Monitor { class
53 new Monitor().subTest(); in run()
DMain.java44 Monitor.run(); in run()
/art/test/167-visit-locks/
Dvisit_locks.cc56 Monitor::VisitLocks(this, Callback, nullptr); in Java_Main_testVisitLocks()
/art/test/003-omnibus-opcodes/
Dexpected.txt41 Monitor.run
/art/test/1932-monitor-events-misc/
Dexpected.txt62 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/
Dobject-inl.h79 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()
Dobject.cc207 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); in IdentityHashCode()
214 Monitor* monitor = lw.FatLockMonitor(); in IdentityHashCode()
/art/dex2oat/linker/
Dimage_write_read_test.cc134 EXPECT_TRUE(Monitor::IsValidLockWord(klass->GetLockWord(false))); in TestWriteRead()

12