Home
last modified time | relevance | path

Searched refs:monitors (Results 1 – 9 of 9) 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.h62 static void ReleaseMonitors(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitors() argument
64 STLDeleteElements(monitors); in ReleaseMonitors()
66 GetMonitorPool()->ReleaseMonitorsToPool(self, monitors); in ReleaseMonitors()
114 void ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors);
Dmonitor_pool.cc134 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool() argument
135 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
Djni_internal.h188 ReferenceTable monitors; member
Ddebugger.h327 std::vector<JDWP::ObjectId>& monitors,
Ddebugger.cc938 std::vector<JDWP::ObjectId>& monitors, in GetOwnedMonitors() argument
946 monitors(monitor_vector), stack_depths(stack_depth_vector) {} in GetOwnedMonitors()
961 visitor->monitors->push_back(gRegistry->Add(owned_monitor)); in GetOwnedMonitors()
966 std::vector<JDWP::ObjectId>* monitors; in GetOwnedMonitors() member
983 OwnedMonitorVisitor visitor(thread, context.get(), &monitors, &stack_depths); in GetOwnedMonitors()
Djni_internal.cc2469 soa.Env()->monitors.Add(o); in MonitorEnter()
2481 soa.Env()->monitors.Remove(o); in MonitorExit()
2962 monitors("monitors", kMonitorsInitial, kMonitorsMax) { in JNIEnvExt()
2991 monitors.Dump(os); in DumpReferenceTables()
Dthread.cc1167 tlsPtr_.jni_env->monitors.VisitRoots(MonitorExitVisitor, self, 0, kRootVMInternal); in Destroy()
2169 tlsPtr_.jni_env->monitors.VisitRoots(visitor, arg, thread_id, kRootJNIMonitor); in VisitRoots()
/art/runtime/jdwp/
Djdwp_handler.cc1085 std::vector<ObjectId> monitors; in TR_OwnedMonitors() local
1087 JdwpError rc = Dbg::GetOwnedMonitors(thread_id, monitors, stack_depths); in TR_OwnedMonitors()
1092 expandBufAdd4BE(reply, monitors.size()); in TR_OwnedMonitors()
1093 for (size_t i = 0; i < monitors.size(); ++i) { in TR_OwnedMonitors()
1094 rc = WriteTaggedObject(reply, monitors[i]); in TR_OwnedMonitors()