Home
last modified time | relevance | path

Searched refs:monitors (Results 1 – 13 of 13) 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.h68 static void ReleaseMonitors(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitors() argument
71 STLDeleteElements(monitors); in ReleaseMonitors()
73 GetMonitorPool()->ReleaseMonitorsToPool(self, monitors); in ReleaseMonitors()
135 void ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors);
Dmonitor_pool.cc153 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool() argument
154 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
Ddebugger.h375 std::vector<JDWP::ObjectId>* monitors,
Ddebugger.cc881 std::vector<JDWP::ObjectId>* monitors, in GetOwnedMonitors() argument
890 monitors(monitor_vector), in GetOwnedMonitors()
906 visitor->monitors->push_back(gRegistry->Add(owned_monitor)); in GetOwnedMonitors()
911 std::vector<JDWP::ObjectId>* const monitors; in GetOwnedMonitors() member
925 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths); in GetOwnedMonitors()
/art/test/1922-owned-monitors-info/
Dexpected.txt1 owner-monitors, This thread
3 Owned monitors: [NamedLock("Lock 1")]
5 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
7 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 3")]
9 Owned monitors: [NamedLock("Lock 1"), Target("Current thread test: owned-monitor")]
11 Owned monitors: [NamedLock("Lock 1"), class art.Test1922$Target]
13 Owned monitors: [NamedLock("Lock 1"), Target("Current thread test: owned-monitor")]
15 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
17 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), NamedLock("Lock 3"), Target("Current thr…
19 Owned monitors: [NamedLock("Lock 1"), NamedLock("Lock 2"), Target("Current thread test: owned-monit…
[all …]
Downed_monitors.cc94 jvmtiMonitorStackDepthInfo* monitors = nullptr; in Java_art_Test1922_getOwnedMonitorStackDepthInfo() local
96 env, jvmti_env, jvmti_env->GetOwnedMonitorStackDepthInfo(thread, &len, &monitors))) { in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
112 monitors[i].stack_depth, in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
113 monitors[i].monitor); in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
/art/test/596-monitor-inflation/
Dinfo.txt1 A simple test that forces many monitors to be inflated, while checking
4 This allocates more monitors and hence may exercise the monitor pool
Dexpected.txt2 Monitor list grew by at least 4000 monitors
/art/runtime/jni/
Djni_env_ext.cc214 ReferenceTable* monitors, in RemoveMonitors() argument
220 [self, frame, monitors](const std::pair<uintptr_t, jobject>& pair) in RemoveMonitors()
224 monitors->Remove(o); in RemoveMonitors()
/art/openjdkjvmti/
Dti_stack.cc855 for (const art::Handle<art::mirror::Object>& monitor : visitor->monitors) { in AppendOwnedMonitors()
860 visitor->monitors.push_back(visitor->hs.NewHandle(owned_monitor)); in AppendOwnedMonitors()
866 for (const art::Handle<art::mirror::Object>& m : monitors) { in VisitRoot()
871 monitors.push_back(hs.NewHandle(obj)); in VisitRoot()
877 std::vector<art::Handle<art::mirror::Object>> monitors; member
957 for (size_t i = 0; i < visitor.monitors.size(); i++) { in GetOwnedMonitorStackDepthInfo()
958 mons.push_back(art::GcRoot<art::mirror::Object>(visitor.monitors[i].Get())); in GetOwnedMonitorStackDepthInfo()
992 for (size_t i = 0; i < visitor.monitors.size(); i++) { in GetOwnedMonitorInfo()
993 mons.push_back(art::GcRoot<art::mirror::Object>(visitor.monitors[i].Get())); in GetOwnedMonitorInfo()
/art/test/
DAndroid.bp251 "923-monitors/monitors.cc",
279 "1922-owned-monitors-info/owned_monitors.cc",
597 "923-monitors/src/art/Test923.java",
649 "1922-owned-monitors-info/src/art/Test1922.java",
699 "923-monitors/expected.txt",
749 "1922-owned-monitors-info/expected.txt",
/art/runtime/jdwp/
Djdwp_handler.cc1061 std::vector<ObjectId> monitors; in TR_OwnedMonitors() local
1063 JdwpError rc = Dbg::GetOwnedMonitors(thread_id, &monitors, &stack_depths); in TR_OwnedMonitors()
1068 expandBufAdd4BE(reply, monitors.size()); in TR_OwnedMonitors()
1069 for (size_t i = 0; i < monitors.size(); ++i) { in TR_OwnedMonitors()
1070 rc = WriteTaggedObject(reply, monitors[i]); in TR_OwnedMonitors()