/art/test/1930-monitor-info/src/art/ |
D | Test1930.java | 25 Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testSingleThread"); in testSingleThread() local 26 executeLocked(() -> { printMonitorUsage(lk); }, lk); in testSingleThread() 29 Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testSingleThread"); in testSingleThreadNative() local 30 executeLockedNative(() -> { printMonitorUsage(lk); }, lk); in testSingleThreadNative() 34 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwice"); in testLockedTwice() local 35 executeLocked(() -> { executeLocked(() -> { printMonitorUsage(lk); }, lk); }, lk); in testLockedTwice() 39 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwiceNJ"); in testLockedTwiceNJ() local 40 executeLockedNative(() -> { executeLockedNative(() -> { printMonitorUsage(lk); }, lk); }, lk); in testLockedTwiceNJ() 44 final Monitors.NamedLock lk = new Monitors.NamedLock("Test1930 - testLockedTwiceJN"); in testLockedTwiceJN() local 45 executeLockedNative(() -> { executeLockedNative(() -> { printMonitorUsage(lk); }, lk); }, lk); in testLockedTwiceJN() [all …]
|
/art/test/1932-monitor-events-misc/src/art/ |
D | Test1932.java | 109 public static native void doNativeLockPrint(Monitors.NamedLock lk); in doNativeLockPrint() argument 110 public static void printLockState(Monitors.NamedLock lk, Object exception, int res) { in printLockState() argument 113 "Lock state is: " + Monitors.getObjectMonitorUsage(lk)); in printLockState() 117 public static void testNativeLockStateThrowEnter(final Monitors.NamedLock lk) throws Exception { in testNativeLockStateThrowEnter() argument 118 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNativeLockStateThrowEnter() 135 doNativeLockPrint(lk); in testNativeLockStateThrowEnter() 145 public static void testNativeLockStateThrowEntered(final Monitors.NamedLock lk) throws Exception { in testNativeLockStateThrowEntered() argument 146 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNativeLockStateThrowEntered() 165 doNativeLockPrint(lk); in testNativeLockStateThrowEntered() 175 public static void testRecursiveMontiorEnteredLock(final Monitors.NamedLock lk) throws Exception { in testRecursiveMontiorEnteredLock() argument [all …]
|
/art/test/1933-monitor-current-contended/src/art/ |
D | Test1933.java | 31 public static void testNormalWaitMonitor(final Monitors.NamedLock lk) throws Exception { in testNormalWaitMonitor() argument 32 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNormalWaitMonitor() 42 synchronized (lk) { in testNormalWaitMonitor() 43 lk.DoNotifyAll(); in testNormalWaitMonitor() 48 public static void testNormalContendedMonitor(final Monitors.NamedLock lk) throws Exception { in testNormalContendedMonitor() argument 49 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testNormalContendedMonitor() 50 final Monitors.LockController controller2 = new Monitors.LockController(lk); in testNormalContendedMonitor() 61 public static void testNoContention(final Monitors.NamedLock lk) throws Exception { in testNoContention() argument 62 synchronized (lk) { in testNoContention()
|
/art/test/1931-monitor-events/src/art/ |
D | Test1931.java | 121 public static void testInteruptWait(final Monitors.NamedLock lk) throws Exception { in testInteruptWait() argument 122 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testInteruptWait() 138 public static void testIllegalWait(final Monitors.NamedLock lk) throws Exception { in testIllegalWait() argument 139 Monitors.LockController controller1 = new Monitors.LockController(lk, /*timed_wait time*/-100); in testIllegalWait() 154 public static void testUnlockedWait(final Monitors.NamedLock lk) throws Exception { in testUnlockedWait() argument 155 synchronized (lk) { in testUnlockedWait() 159 m.invoke(lk); in testUnlockedWait() 169 public static void testLock(Monitors.NamedLock lk) throws Exception { in testLock() argument 170 Monitors.LockController controller1 = new Monitors.LockController(lk); in testLock() 171 Monitors.LockController controller2 = new Monitors.LockController(lk); in testLock() [all …]
|
/art/openjdkjvmti/ |
D | ti_monitor.cc | 139 auto wait_without_timeout = [&](std::unique_lock<std::mutex>& lk) { in Wait() argument 140 cond_.wait(lk); in Wait() 146 auto wait_with_timeout = [&](std::unique_lock<std::mutex>& lk) { in Wait() argument 147 cond_.wait_for(lk, std::chrono::milliseconds(timeout_in_ms)); in Wait() 182 std::unique_lock<std::mutex> lk(mutex_, std::adopt_lock); in Wait() local 183 how_to_wait(lk); in Wait()
|
D | ti_breakpoint.cc | 132 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in RemoveBreakpointsInClass() local 164 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetBreakpoint() local 183 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearBreakpoint() local
|
D | ti_field.cc | 273 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetFieldModificationWatch() local 290 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearFieldModificationWatch() local 307 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetFieldAccessWatch() local 324 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearFieldAccessWatch() local
|
D | events-inl.h | 367 art::ReaderMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 384 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 407 art::ReaderMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 424 art::ReaderMutexLock lk(art::Thread::Current(), env->event_info_mutex_);
|
D | deopt_manager.cc | 211 art::MutexLock lk(art::Thread::Current(), breakpoint_status_lock_); in MethodHasBreakpoints() local 359 art::MutexLock lk(self_, deopt_->deoptimization_status_lock_); in RELEASE() local
|
D | ti_extension.cc | 770 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetExtensionEventCallback() local
|
D | ti_stack.cc | 1084 art::WriterMutexLock lk(self, tienv->event_info_mutex_); in NotifyFramePop() local
|
D | OpenjdkJvmTi.cc | 1011 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetEventCallbacks() local
|
/art/perfetto_hprof/ |
D | perfetto_hprof.cc | 191 art::MutexLock lk(art_thread(), GetStateMutex()); in OnStart() local 205 art::MutexLock lk(art_thread(), finish_mutex_); in OnStop() local 226 art::MutexLock lk(art_thread(), finish_mutex_); in Finish() local 261 art::MutexLock lk(self, GetStateMutex()); in WaitForDataSource() local 826 art::MutexLock lk(JavaHprofDataSource::art_thread(), GetStateMutex()); in DumpPerfetto() local 833 art::MutexLock lk(JavaHprofDataSource::art_thread(), GetStateMutex()); in DumpPerfetto() local 862 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Initialize() local 903 art::MutexLock lk(nullptr, GetStateMutex()); in ArtPlugin_Initialize() local 916 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Initialize() local 955 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Deinitialize() local
|
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 122 std::lock_guard<std::mutex> lk(state_mutex_); in SetupListen() local 138 std::lock_guard<std::mutex> lk(state_mutex_); in StopListening() local 206 std::lock_guard<std::mutex> lk(state_mutex_); in ReadFully() local 281 std::lock_guard<std::mutex> lk(state_mutex_); in WriteFully() local 371 std::unique_lock<std::mutex> lk(state_mutex_); in Accept() local 377 state_cv_.wait(lk); in Accept() 450 std::lock_guard<std::mutex> lk(state_mutex_); in Close() local
|
/art/test/912-classes/ |
D | classes.cc | 441 std::unique_lock<std::mutex> lk(mutex_); in AgentThreadTest() local 444 cond_finished_.wait(lk, [] { return finished_; }); in AgentThreadTest() 463 std::unique_lock<std::mutex> lk(mutex_); in ClassLoadCallback() local 464 cond_started_.wait(lk, [] { return started_; }); in ClassLoadCallback() 481 std::unique_lock<std::mutex> lk(mutex_); in ClassPrepareCallback() local
|
/art/tools/jvmti-agents/chain-agents/ |
D | chainagents.cc | 128 std::lock_guard<std::mutex> lk(unload_mutex); in Agent_OnUnload() local
|
/art/tools/jvmti-agents/wrapagentproperties/ |
D | wrapagentproperties.cc | 70 std::lock_guard<std::mutex> lk(unload_mutex); in ProxyJavaVM() local 337 std::lock_guard<std::mutex> lk(unload_mutex); in Agent_OnUnload() local
|
/art/adbconnection/ |
D | adbconnection.cc | 309 ScopedEventFdLock lk(adb_write_event_fd_); in CloseFds() local 348 ScopedEventFdLock lk(adb_write_event_fd_); in SendDdmPacket() local
|