/art/runtime/ |
H A D | monitor_linux.cc | 21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, const char*, uint32_t) {
|
H A D | monitor_pool.cc | 71 Monitor* last = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(chunk) + 78 Monitor* before = reinterpret_cast<Monitor*>(reinterpret_cast<uintptr_t>(last) - 87 DCHECK(last == reinterpret_cast<Monitor*>(chunk)); 91 Monitor* MonitorPool::CreateMonitorInPool(Thread* self, Thread* owner, mirror::Object* obj, 103 Monitor* mon_uninitialized = first_free_; 110 Monitor* monitor = new(mon_uninitialized) Monitor(self, owner, obj, hash_code, id); 115 void MonitorPool::ReleaseMonitorToPool(Thread* self, Monitor* monito [all...] |
H A D | monitor_pool.h | 34 // monitor id loses the alignment bits of the Monitor*. 45 static Monitor* CreateMonitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 48 Monitor* mon = new Monitor(self, owner, obj, hash_code); 56 static void ReleaseMonitor(Thread* self, Monitor* monitor) { 74 static Monitor* MonitorFromMonitorId(MonitorId mon_id) { 76 return reinterpret_cast<Monitor*>(mon_id << LockWord::kMonitorIdAlignmentShift); 82 static MonitorId MonitorIdFromMonitor(Monitor* mon) { 90 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { 115 Monitor* CreateMonitorInPoo [all...] |
H A D | monitor_pool_test.cc | 39 static void VerifyMonitor(Monitor* mon, Thread* self) { 49 std::vector<Monitor*> monitors; 74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); 81 Monitor* mon = monitors[index]; 97 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, 105 for (Monitor* mon : monitors) { 113 Monitor* mon = monitors[index]; 121 for (Monitor* mon : monitors) {
|
H A D | monitor.cc | 72 bool (*Monitor::is_sensitive_thread_hook_)() = nullptr; 73 uint32_t Monitor::lock_profiling_threshold_ = 0; 75 bool Monitor::IsSensitiveThread() { 82 void Monitor::Init(uint32_t lock_profiling_threshold, bool (*is_sensitive_thread_hook)()) { 87 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) function in class:art::Monitor 109 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code, function in class:art::Monitor 131 int32_t Monitor::GetHashCode() { 141 bool Monitor [all...] |
H A D | monitor.h | 50 class Monitor { class in namespace:art 56 ~Monitor(); 138 // Align Monitor* as per the monitor ID field size in the lock word. 151 explicit Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 153 explicit Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code, 182 Monitor* mon) 273 Monitor* next_free_ GUARDED_BY(Locks::allocated_monitor_ids_lock_); 280 DISALLOW_COPY_AND_ASSIGN(Monitor); 288 void Add(Monitor* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 299 typedef std::list<Monitor*, TrackingAllocato [all...] |
H A D | lock_word-inl.h | 37 inline Monitor* LockWord::FatLockMonitor() const { 53 inline LockWord::LockWord(Monitor* mon, uint32_t rb_state)
|
H A D | object_lock.cc | 37 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting);
|
H A D | lock_word.h | 32 class Monitor; 193 // Return the Monitor encoded in a fat lock. 194 Monitor* FatLockMonitor() const; 199 // Constructor a lock word for inflation to use a Monitor. 200 explicit LockWord(Monitor* mon, uint32_t rb_state);
|
H A D | monitor_android.cc | 52 void Monitor::LogContentionEvent(Thread* self, uint32_t wait_ms, uint32_t sample_percent, 69 cp = EventLogWriteInt(cp, Monitor::IsSensitiveThread());
|
H A D | monitor_test.cc | 46 std::unique_ptr<Monitor> monitor_; 151 // Now try to Wait on the Monitor. 152 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, 197 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, 242 Monitor::Wait(self, monitor_test_->object_.Get(), 10, 0, true, 356 // First test: throwing an exception when trying to wait in Monitor with another thread. 363 "Monitor test thread pool 1"); 373 "Monitor test thread pool 2"); 384 "Monitor test thread pool 3");
|
H A D | runtime_options.def | 56 RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation)
|
H A D | thread.h | 81 class Monitor; 470 Monitor* GetWaitMonitor() const EXCLUSIVE_LOCKS_REQUIRED(wait_mutex_) { 474 void SetWaitMonitor(Monitor* mon) EXCLUSIVE_LOCKS_REQUIRED(wait_mutex_) { 1279 Monitor* wait_monitor_ GUARDED_BY(wait_mutex_);
|
H A D | runtime.cc | 160 max_spins_before_thin_lock_inflation_(Monitor::kDefaultMaxSpinsBeforeThinLockInflation), 801 Monitor::Init(runtime_options.GetOrDefault(Opt::LockProfThreshold),
|
H A D | thread_list.cc | 56 CHECK(Monitor::IsValidLockWord(LockWord::FromThinLockId(kMaxThreadId, 1, 0U)));
|
H A D | thread.cc | 1081 Monitor::DescribeWait(os, thread); 1085 Monitor::VisitLocks(this, DumpLockedObject, &os, false);
|
/art/test/003-omnibus-opcodes/src/ |
H A D | Monitor.java | 21 public class Monitor { class 35 System.out.println("Monitor.run"); 53 new Monitor().subTest();
|
H A D | Main.java | 44 Monitor.run();
|
/art/runtime/mirror/ |
H A D | object.cc | 175 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); 182 Monitor* monitor = lw.FatLockMonitor();
|
H A D | object-inl.h | 92 return Monitor::GetLockOwnerThreadId(this); 96 return Monitor::MonitorEnter(self, this); 100 return Monitor::MonitorExit(self, this); 104 Monitor::Notify(self, this); 108 Monitor::NotifyAll(self, this); 112 Monitor::Wait(self, this, 0, 0, true, kWaiting); 116 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting);
|
H A D | object.h | 31 class Monitor; 516 // Monitor and hash code information. 528 friend class art::Monitor;
|
/art/compiler/ |
H A D | image_test.cc | 192 EXPECT_TRUE(Monitor::IsValidLockWord(klass->GetLockWord(false)));
|
H A D | image_writer.cc | 276 Monitor::Deflate(Thread::Current(), object);;
|
/art/runtime/native/ |
H A D | java_lang_Thread.cc | 166 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping);
|
/art/runtime/arch/ |
H A D | stub_test.cc | 894 EXPECT_NE(lock_after2.FatLockMonitor(), static_cast<Monitor*>(nullptr));
|