Home
last modified time | relevance | path

Searched refs:monitor (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/
H A Dmonitor_pool.cpp21 #include "runtime/monitor.h"
31 auto monitor = allocator_->New<Monitor>(lastId_); in CreateMonitor() local
32 if (monitor == nullptr) { in CreateMonitor()
35 monitors_[lastId_] = monitor; in CreateMonitor()
36 monitor->SetObject(obj); in CreateMonitor()
37 return monitor; in CreateMonitor()
59 auto *monitor = it->second; in FreeMonitor() local
61 allocator_->Delete(monitor); in FreeMonitor()
69 auto monitor = monitorIter->second; in DeflateMonitors() local
70 if (monitor in DeflateMonitors()
83 auto *monitor = it.second; ReleaseMonitors() local
96 auto *monitor = it.second; GetEnteredMonitorsIds() local
[all...]
H A Dmonitor.cpp16 #include "runtime/monitor.h"
94 // and try inflating light monitor (`Inflate` expects lock to still be acquired by target; in InflateThinLock()
95 // otherwise markword CAS fails). If it fails (i.e. thread got suspended when this monitor is in InflateThinLock()
98 // or inflate monitor once this thread acquires light lock), this policy yields much better in InflateThinLock()
101 // monitor still acquired. in InflateThinLock()
116 // NB! Inflate can do nothing if monitor is already unlocked or acquired by other thread. in InflateThinLock()
127 // to heavy monitor in InflateThinLock()
150 LOG(DEBUG, RUNTIME) << "The lightweight monitor was successfully recursively acquired"; in HandleLightLockedState()
217 LOG(DEBUG, RUNTIME) << "The lightweight monitor was successfully acquired for the first time"; in HandleUnlockedState()
253 LOG(DEBUG, RUNTIME) << "Try to enter monitor " << st in MonitorEnter()
257 auto monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); MonitorEnter() local
318 auto monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); MonitorExit() local
397 auto monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); Wait() local
493 auto monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); Notify() local
541 auto monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); NotifyAll() local
732 Monitor *monitor = nullptr; Acquire() local
806 Monitor *monitor = nullptr; Acquire() local
876 Monitor *monitor = thread->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); Acquire() local
902 Monitor *monitor = MTManagedThread::GetCurrent()->GetMonitorPool()->LookupMonitor(mark.GetMonitorId()); Acquire() local
[all...]
H A Dmonitor_pool.h24 #include "runtime/monitor.h"
30 // Likely, we do not need to copy monitor pool
52 auto monitor = monitorIter->second; in DeflateMonitorsWithCallBack() local
53 if (cb(monitor) && monitor->DeflateInternal()) { in DeflateMonitorsWithCallBack()
55 allocator_->Delete(monitor); in DeflateMonitorsWithCallBack()
H A Dmark_word.h89 #include "runtime/monitor.h"
200 MarkWord DecodeFromMonitor(Monitor::MonitorId monitor) in DecodeFromMonitor() argument
202 // Clear monitor and status bits in DecodeFromMonitor()
204 MarkWordSize monitorInPlace = (static_cast<MarkWordSize>(monitor) & MONITOR_POINTER_MASK) in DecodeFromMonitor()
221 // Clear monitor and status bits in DecodeFromLightLock()
235 // Clear monitor and status bits in DecodeFromUnlocked()
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dmtmanaged_thread.h35 void AddMonitor(Monitor *monitor);
36 void RemoveMonitor(Monitor *monitor);
65 void SetWaitingMonitor(Monitor *monitor) in SetWaitingMonitor() argument
67 ASSERT(waitingMonitor_ == nullptr || monitor == nullptr); in SetWaitingMonitor()
68 waitingMonitor_ = monitor; in SetWaitingMonitor()
77 void SetEnteringMonitor(Monitor *monitor) in SetEnteringMonitor() argument
80 ASSERT(enteringMonitor_.load(std::memory_order_relaxed) == nullptr || monitor == nullptr); in SetEnteringMonitor()
82 enteringMonitor_.store(monitor, std::memory_order_relaxed); in SetEnteringMonitor()
105 // Need to acquire the mutex before waiting to avoid scheduling between monitor release and clond_lock acquire
H A Dthread-inl.h117 ALWAYS_INLINE inline void MTManagedThread::AddMonitor(Monitor *monitor) in AddMonitor() argument
122 LOG(DEBUG, RUNTIME) << "Adding monitor " << monitor->GetId(); in AddMonitor()
125 ALWAYS_INLINE inline void MTManagedThread::RemoveMonitor(Monitor *monitor) in RemoveMonitor() argument
130 LOG(DEBUG, RUNTIME) << "Removing monitor " << monitor->GetId(); in RemoveMonitor()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/lang/
H A Dgc_lang.cpp83 GetPandaVm()->GetMonitorPool()->EnumerateMonitors([this](Monitor *monitor) { in CommonUpdateRefsToMovedObjects()
84 ObjectHeader *objectHeader = monitor->GetObject(); in CommonUpdateRefsToMovedObjects()
91 LOG_DEBUG_GC << "Update monitor " << std::hex << monitor << " object, old val = 0x" << std::hex in CommonUpdateRefsToMovedObjects()
93 monitor->SetObject(reinterpret_cast<ObjectHeader *>(addr)); in CommonUpdateRefsToMovedObjects()
119 // Run monitor deflation first in PreRunPhasesImpl()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmetadata_layout.h298 int32_t monitor; member
/arkcompiler/runtime_core/static_core/runtime/mem/gc/gen-gc/
H A Dgen-gc.cpp614 // Run monitor deflation again, to avoid object was reclaimed before monitor deflate. in Sweep()
616 this->GetPandaVm()->GetMonitorPool()->DeflateMonitorsWithCallBack([&youngMr, this](Monitor *monitor) { in Sweep()
617 ObjectHeader *objectHeader = monitor->GetObject(); in Sweep()
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
H A Dllvm_ir_constructor.cpp4430 MonitorInst *monitor = inst->CastToMonitor(); in VisitMonitor() local
4432 auto eid = monitor->IsEntry() ? RuntimeInterface::EntrypointId::MONITOR_ENTER_FAST_PATH in VisitMonitor()

Completed in 16 milliseconds