/art/runtime/ |
D | monitor_pool_test.cc | 49 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 …]
|
D | monitor_pool.h | 68 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);
|
D | monitor_pool.cc | 153 void MonitorPool::ReleaseMonitorsToPool(Thread* self, MonitorList::Monitors* monitors) { in ReleaseMonitorsToPool() argument 154 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool()
|
D | debugger.h | 375 std::vector<JDWP::ObjectId>* monitors,
|
D | debugger.cc | 881 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/ |
D | expected.txt | 1 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 …]
|
D | owned_monitors.cc | 94 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/ |
D | info.txt | 1 A simple test that forces many monitors to be inflated, while checking 4 This allocates more monitors and hence may exercise the monitor pool
|
D | expected.txt | 2 Monitor list grew by at least 4000 monitors
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 214 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/ |
D | ti_stack.cc | 855 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/ |
D | Android.bp | 251 "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/ |
D | jdwp_handler.cc | 1061 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()
|