Home
last modified time | relevance | path

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

12

/art/runtime/
Dmonitor_pool.h45 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 …]
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, 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()
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.cc75 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 …]
Dmonitor.h50 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
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.h32 class Monitor; variable
236 Monitor* FatLockMonitor() const;
242 LockWord(Monitor* mon, uint32_t gc_state);
Dobject_lock.cc38 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting); in WaitIgnoringInterrupts()
Dmonitor_test.cc47 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()
Dmonitor_android.cc33 void Monitor::LogContentionEvent(Thread* self, in LogContentionEvent()
Dthread.h88 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_);
Druntime_options.def58 RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpins…
Druntime.cc218 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/
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/003-omnibus-opcodes/
Dexpected.txt41 Monitor.run
/art/tools/cpp-define-generator/
Doffset_mirror_object.def30 DEFINE_MIRROR_OBJECT_OFFSET(LOCK_WORD, Monitor)
/art/runtime/mirror/
Dobject-inl.h93 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()
Dobject.cc207 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); in IdentityHashCode()
214 Monitor* monitor = lw.FatLockMonitor(); in IdentityHashCode()
Dobject.h35 class Monitor; variable
723 friend class art::Monitor;
/art/runtime/native/
Djava_lang_Thread.cc182 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
/art/runtime/openjdkjvm/
DOpenjdkJvm.cc370 art::Monitor::Wait(art::Thread::Current(), lock.Ptr(), millis, 0, true, art::kSleeping); in JVM_Sleep()
/art/compiler/
Dimage_test.h492 EXPECT_TRUE(Monitor::IsValidLockWord(klass->GetLockWord(false))); in TestWriteRead()

12