Home
last modified time | relevance | path

Searched refs:monitors (Results 1 – 15 of 15) 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()
/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()
DAndroid.bp3 name: "art-run-test-1922-owned-monitors-info",
/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/test/923-monitors/
DAndroid.bp3 name: "art-run-test-923-monitors",
/art/test/2029-contended-monitors/
DAndroid.bp3 name: "art-run-test-2029-contended-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.cc872 for (const art::Handle<art::mirror::Object>& monitor : visitor->monitors) { in AppendOwnedMonitors()
877 visitor->monitors.push_back(visitor->hs.NewHandle(owned_monitor)); in AppendOwnedMonitors()
883 for (const art::Handle<art::mirror::Object>& m : monitors) { in VisitRoot()
888 monitors.push_back(hs.NewHandle(obj)); in VisitRoot()
894 std::vector<art::Handle<art::mirror::Object>> monitors; member
974 for (size_t i = 0; i < visitor.monitors.size(); i++) { in GetOwnedMonitorStackDepthInfo()
975 mons.push_back(art::GcRoot<art::mirror::Object>(visitor.monitors[i].Get())); in GetOwnedMonitorStackDepthInfo()
1009 for (size_t i = 0; i < visitor.monitors.size(); i++) { in GetOwnedMonitorInfo()
1010 mons.push_back(art::GcRoot<art::mirror::Object>(visitor.monitors[i].Get())); in GetOwnedMonitorInfo()
/art/test/utils/
Dregen-test-files84 art-run-test-1922-owned-monitors-info
225 art-run-test-923-monitors
/art/test/
DAndroid.bp356 "923-monitors/monitors.cc",
384 "1922-owned-monitors-info/owned_monitors.cc",
706 "923-monitors/src/art/Test923.java",
758 "1922-owned-monitors-info/src/art/Test1922.java",
846 "923-monitors/expected.txt",
896 "1922-owned-monitors-info/expected.txt",
/art/
DTEST_MAPPING387 "name": "art-run-test-2029-contended-monitors"