Searched refs:Monitor (Results 1 - 25 of 26) sorted by relevance

12

/art/runtime/
H A Dmonitor_linux.cc21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, const char*, uint32_t) {
H A Dmonitor_pool.cc71 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 Dmonitor_pool.h34 // 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 Dmonitor_pool_test.cc39 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 Dmonitor.cc72 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 Dmonitor.h50 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 Dlock_word-inl.h37 inline Monitor* LockWord::FatLockMonitor() const {
53 inline LockWord::LockWord(Monitor* mon, uint32_t rb_state)
H A Dobject_lock.cc37 Monitor::Wait(self_, obj_.Get(), 0, 0, false, kWaiting);
H A Dlock_word.h32 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 Dmonitor_android.cc52 void Monitor::LogContentionEvent(Thread* self, uint32_t wait_ms, uint32_t sample_percent,
69 cp = EventLogWriteInt(cp, Monitor::IsSensitiveThread());
H A Dmonitor_test.cc46 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 Druntime_options.def56 RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation)
H A Dthread.h81 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 Druntime.cc160 max_spins_before_thin_lock_inflation_(Monitor::kDefaultMaxSpinsBeforeThinLockInflation),
801 Monitor::Init(runtime_options.GetOrDefault(Opt::LockProfThreshold),
H A Dthread_list.cc56 CHECK(Monitor::IsValidLockWord(LockWord::FromThinLockId(kMaxThreadId, 1, 0U)));
H A Dthread.cc1081 Monitor::DescribeWait(os, thread);
1085 Monitor::VisitLocks(this, DumpLockedObject, &os, false);
/art/test/003-omnibus-opcodes/src/
H A DMonitor.java21 public class Monitor { class
35 System.out.println("Monitor.run");
53 new Monitor().subTest();
H A DMain.java44 Monitor.run();
/art/runtime/mirror/
H A Dobject.cc175 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode());
182 Monitor* monitor = lw.FatLockMonitor();
H A Dobject-inl.h92 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 Dobject.h31 class Monitor;
516 // Monitor and hash code information.
528 friend class art::Monitor;
/art/compiler/
H A Dimage_test.cc192 EXPECT_TRUE(Monitor::IsValidLockWord(klass->GetLockWord(false)));
H A Dimage_writer.cc276 Monitor::Deflate(Thread::Current(), object);;
/art/runtime/native/
H A Djava_lang_Thread.cc166 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping);
/art/runtime/arch/
H A Dstub_test.cc894 EXPECT_NE(lock_after2.FatLockMonitor(), static_cast<Monitor*>(nullptr));

Completed in 675 milliseconds

12