/art/runtime/ |
D | monitor_pool.h | 45 static Monitor* CreateMonitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) in CreateMonitor() 48 Monitor* mon = new Monitor(self, owner, obj, hash_code); in CreateMonitor() 56 static void ReleaseMonitor(Thread* self, Monitor* monitor) { in ReleaseMonitor() 74 static Monitor* MonitorFromMonitorId(MonitorId mon_id) { in MonitorFromMonitorId() 76 return reinterpret_cast<Monitor*>(mon_id << LockWord::kMonitorIdAlignmentShift); in MonitorFromMonitorId() 82 static MonitorId MonitorIdFromMonitor(Monitor* mon) { in MonitorIdFromMonitor() 90 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { in ComputeMonitorId() 125 Monitor* CreateMonitorInPool(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 128 void ReleaseMonitorToPool(Thread* self, Monitor* monitor); 135 Monitor* LookupMonitor(MonitorId mon_id) { in LookupMonitor() [all …]
|
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, Thread* owner, mirror::Object* obj, in CreateMonitorInPool() 120 Monitor* mon_uninitialized = first_free_; in CreateMonitorInPool() 127 Monitor* monitor = new(mon_uninitialized) Monitor(self, owner, obj, hash_code, id); in CreateMonitorInPool() 132 void MonitorPool::ReleaseMonitorToPool(Thread* self, Monitor* monitor) { in ReleaseMonitorToPool() 141 monitor->~Monitor(); in ReleaseMonitorToPool() 152 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
|
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 | 75 uint32_t Monitor::lock_profiling_threshold_ = 0; 76 uint32_t Monitor::stack_dump_lock_profiling_threshold_ = 0; 78 void Monitor::Init(uint32_t lock_profiling_threshold, in Init() 84 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) in Monitor() function in art::Monitor 106 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code, in Monitor() function in art::Monitor 128 int32_t Monitor::GetHashCode() { in GetHashCode() 138 bool Monitor::Install(Thread* self) { in Install() 178 Monitor::~Monitor() { in ~Monitor() 182 void Monitor::AppendToWaitSet(Thread* thread) { in AppendToWaitSet() 199 void Monitor::RemoveFromWaitSet(Thread *thread) { in RemoveFromWaitSet() [all …]
|
D | monitor.h | 50 class Monitor { 56 ~Monitor(); 157 Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) 159 Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code, MonitorId id) 194 Monitor* mon) 313 Monitor* next_free_ GUARDED_BY(Locks::allocated_monitor_ids_lock_); 320 DISALLOW_COPY_AND_ASSIGN(Monitor); 328 void Add(Monitor* m) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!monitor_list_lock_); 339 typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors; 351 friend class Monitor; variable
|
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 | lock_word.h | 32 class Monitor; variable 236 Monitor* FatLockMonitor() const; 242 LockWord(Monitor* mon, uint32_t gc_state);
|
D | object_lock.cc | 38 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting); in WaitIgnoringInterrupts()
|
D | monitor_test.cc | 47 std::unique_ptr<Monitor> monitor_; 152 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run() 197 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run() 242 Monitor::Wait(self, monitor_test_->object_.Get(), 10, 0, true, in Run()
|
D | monitor_android.cc | 33 void Monitor::LogContentionEvent(Thread* self, in LogContentionEvent()
|
D | thread.h | 88 class Monitor; variable 530 Monitor* GetWaitMonitor() const REQUIRES(wait_mutex_) { in GetWaitMonitor() 534 void SetWaitMonitor(Monitor* mon) REQUIRES(wait_mutex_) { in SetWaitMonitor() 1673 Monitor* wait_monitor_ GUARDED_BY(wait_mutex_);
|
D | runtime_options.def | 58 RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpins…
|
D | runtime.cc | 218 max_spins_before_thin_lock_inflation_(Monitor::kDefaultMaxSpinsBeforeThinLockInflation), in Runtime() 1079 Monitor::Init(runtime_options.GetOrDefault(Opt::LockProfThreshold), in Init()
|
/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/003-omnibus-opcodes/ |
D | expected.txt | 41 Monitor.run
|
/art/tools/cpp-define-generator/ |
D | offset_mirror_object.def | 30 DEFINE_MIRROR_OBJECT_OFFSET(LOCK_WORD, Monitor)
|
/art/runtime/mirror/ |
D | object-inl.h | 93 return Monitor::GetLockOwnerThreadId(this); in GetLockOwnerThreadId() 97 return Monitor::MonitorEnter(self, this, /*trylock*/false); in MonitorEnter() 101 return Monitor::MonitorEnter(self, this, /*trylock*/true); in MonitorTryEnter() 105 return Monitor::MonitorExit(self, this); in MonitorExit() 109 Monitor::Notify(self, this); in Notify() 113 Monitor::NotifyAll(self, this); in NotifyAll() 117 Monitor::Wait(self, this, 0, 0, true, kWaiting); in Wait() 121 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
|
D | object.cc | 207 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); in IdentityHashCode() 214 Monitor* monitor = lw.FatLockMonitor(); in IdentityHashCode()
|
D | object.h | 35 class Monitor; variable 723 friend class art::Monitor;
|
/art/runtime/native/ |
D | java_lang_Thread.cc | 182 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|
/art/runtime/openjdkjvm/ |
D | OpenjdkJvm.cc | 370 art::Monitor::Wait(art::Thread::Current(), lock.Ptr(), millis, 0, true, art::kSleeping); in JVM_Sleep()
|
/art/compiler/ |
D | image_test.h | 492 EXPECT_TRUE(Monitor::IsValidLockWord(klass->GetLockWord(false))); in TestWriteRead()
|