/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 | 103 public static void testInteruptWait(final Monitors.NamedLock lk) throws Exception { in testInteruptWait() argument 104 final Monitors.LockController controller1 = new Monitors.LockController(lk); in testInteruptWait() 120 public static void testIllegalWait(final Monitors.NamedLock lk) throws Exception { in testIllegalWait() argument 121 Monitors.LockController controller1 = new Monitors.LockController(lk, /*timed_wait time*/-100); in testIllegalWait() 136 public static void testUnlockedWait(final Monitors.NamedLock lk) throws Exception { in testUnlockedWait() argument 137 synchronized (lk) { in testUnlockedWait() 141 m.invoke(lk); in testUnlockedWait() 151 public static void testLock(Monitors.NamedLock lk) throws Exception { in testLock() argument 152 Monitors.LockController controller1 = new Monitors.LockController(lk); in testLock() 153 Monitors.LockController controller2 = new Monitors.LockController(lk); in testLock() [all …]
|
/art/openjdkjvmti/ |
D | ti_breakpoint.cc | 69 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in RemoveBreakpointsInClass() local 101 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetBreakpoint() local 120 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearBreakpoint() local
|
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_field.cc | 192 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetFieldModificationWatch() local 209 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearFieldModificationWatch() local 226 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in SetFieldAccessWatch() local 243 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); in ClearFieldAccessWatch() local
|
D | events-inl.h | 346 art::ReaderMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 363 art::WriterMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 386 art::ReaderMutexLock lk(art::Thread::Current(), env->event_info_mutex_); 403 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 | 472 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetExtensionEventCallback() local
|
D | ti_stack.cc | 1067 art::WriterMutexLock lk(self, tienv->event_info_mutex_); in NotifyFramePop() local
|
D | OpenjdkJvmTi.cc | 1041 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetEventCallbacks() local
|
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 120 std::lock_guard<std::mutex> lk(state_mutex_); in SetupListen() local 136 std::lock_guard<std::mutex> lk(state_mutex_); in StopListening() local 204 std::lock_guard<std::mutex> lk(state_mutex_); in ReadFully() local 279 std::lock_guard<std::mutex> lk(state_mutex_); in WriteFully() local 364 std::unique_lock<std::mutex> lk(state_mutex_); in Accept() local 370 state_cv_.wait(lk); in Accept() 441 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/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 | 282 ScopedEventFdLock lk(adb_write_event_fd_); in CloseFds() local 321 ScopedEventFdLock lk(adb_write_event_fd_); in SendDdmPacket() local
|