Lines Matching refs:mon
39 static void VerifyMonitor(Monitor* mon, Thread* self) { in VerifyMonitor() argument
41 EXPECT_EQ(MonitorPool::MonitorIdFromMonitor(mon), mon->GetMonitorId()); in VerifyMonitor()
43 EXPECT_EQ(MonitorPool::ComputeMonitorId(mon, self), mon->GetMonitorId()); in VerifyMonitor()
45 EXPECT_EQ(mon, MonitorPool::MonitorFromMonitorId(mon->GetMonitorId())); in VerifyMonitor()
74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); in TEST_F() local
75 monitors.push_back(mon); in TEST_F()
77 VerifyMonitor(mon, self); in TEST_F()
81 Monitor* mon = monitors[index]; in TEST_F() local
85 VerifyMonitor(mon, self); in TEST_F()
87 MonitorPool::ReleaseMonitor(self, mon); in TEST_F()
97 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, in TEST_F() local
99 monitors.push_back(mon); in TEST_F()
101 VerifyMonitor(mon, self); in TEST_F()
105 for (Monitor* mon : monitors) { in TEST_F()
106 VerifyMonitor(mon, self); in TEST_F()
113 Monitor* mon = monitors[index]; in TEST_F() local
116 MonitorPool::ReleaseMonitor(self, mon); in TEST_F()
121 for (Monitor* mon : monitors) { in TEST_F()
122 VerifyMonitor(mon, self); in TEST_F()
123 MonitorPool::ReleaseMonitor(self, mon); in TEST_F()