Home
last modified time | relevance | path

Searched refs:monitors (Results 1 – 10 of 10) sorted by relevance

/art/runtime/
Dmonitor_pool_test.cc49 std::vector<Monitor*> monitors; in TEST_F() local
64 if (monitors.size() == 0) { in TEST_F()
66 } else if (monitors.size() == kMaxUsage) { in TEST_F()
75 monitors.push_back(mon); in TEST_F()
80 size_t index = r.next() % monitors.size(); in TEST_F()
81 Monitor* mon = monitors[index]; in TEST_F()
82 monitors.erase(monitors.begin() + index); in TEST_F()
95 size_t target_size = monitors.size() + 2*kMaxUsage; in TEST_F()
96 while (monitors.size() < target_size) { in TEST_F()
98 static_cast<int32_t>(-monitors.size())); in TEST_F()
[all …]
Dmonitor_pool.h65 static void ReleaseMonitors(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitors() argument
68 STLDeleteElements(monitors); in ReleaseMonitors()
70 GetMonitorPool()->ReleaseMonitorsToPool(self, monitors); in ReleaseMonitors()
119 void ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors);
Djni_env_ext.cc56 monitors("monitors", kMonitorsInitial, kMonitorsMax) { in JNIEnvExt()
86 monitors.Dump(os); in DumpReferenceTables()
Dmonitor_pool.cc134 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool() argument
135 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
Djni_env_ext.h87 ReferenceTable monitors; member
Ddebugger.h353 std::vector<JDWP::ObjectId>* monitors,
Ddebugger.cc883 std::vector<JDWP::ObjectId>* monitors, in GetOwnedMonitors() argument
892 monitors(monitor_vector), in GetOwnedMonitors()
908 visitor->monitors->push_back(gRegistry->Add(owned_monitor)); in GetOwnedMonitors()
913 std::vector<JDWP::ObjectId>* const monitors; in GetOwnedMonitors() member
927 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths); in GetOwnedMonitors()
Dthread.cc1363 tlsPtr_.jni_env->monitors.VisitRoots(&visitor, RootInfo(kRootVMInternal)); in Destroy()
2437 tlsPtr_.jni_env->monitors.VisitRoots(visitor, RootInfo(kRootJNIMonitor, thread_id)); in VisitRoots()
Djni_internal.cc2233 soa.Env()->monitors.Add(o); in MonitorEnter()
2245 soa.Env()->monitors.Remove(o); in MonitorExit()
/art/runtime/jdwp/
Djdwp_handler.cc1034 std::vector<ObjectId> monitors; in TR_OwnedMonitors() local
1036 JdwpError rc = Dbg::GetOwnedMonitors(thread_id, &monitors, &stack_depths); in TR_OwnedMonitors()
1041 expandBufAdd4BE(reply, monitors.size()); in TR_OwnedMonitors()
1042 for (size_t i = 0; i < monitors.size(); ++i) { in TR_OwnedMonitors()
1043 rc = WriteTaggedObject(reply, monitors[i]); in TR_OwnedMonitors()