Home
last modified time | relevance | path

Searched refs:lk (Results 1 – 18 of 18) sorted by relevance

/art/test/1930-monitor-info/src/art/
DTest1930.java25 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/
DTest1932.java109 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/
DTest1933.java31 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/
DTest1931.java103 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/
Dti_monitor.cc139 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()
Dti_breakpoint.cc132 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
Dti_field.cc273 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
Devents-inl.h367 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_);
Ddeopt_manager.cc211 art::MutexLock lk(art::Thread::Current(), breakpoint_status_lock_); in MethodHasBreakpoints() local
359 art::MutexLock lk(self_, deopt_->deoptimization_status_lock_); in RELEASE() local
Dti_extension.cc696 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetExtensionEventCallback() local
Dti_stack.cc1084 art::WriterMutexLock lk(self, tienv->event_info_mutex_); in NotifyFramePop() local
DOpenjdkJvmTi.cc1011 art::WriterMutexLock lk(art::Thread::Current(), art_env->event_info_mutex_); in SetEventCallbacks() local
/art/perfetto_hprof/
Dperfetto_hprof.cc239 art::MutexLock lk(art_thread(), GetStateMutex()); in OnStart() local
278 art::MutexLock lk(self, GetStateMutex()); in WaitForDataSource() local
650 art::MutexLock lk(JavaHprofDataSource::art_thread(), GetStateMutex()); in DumpPerfetto() local
657 art::MutexLock lk(self, GetStateMutex()); in DumpPerfetto() local
674 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Initialize() local
714 art::MutexLock lk(nullptr, GetStateMutex()); in ArtPlugin_Initialize() local
727 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Initialize() local
766 art::MutexLock lk(self, GetStateMutex()); in ArtPlugin_Deinitialize() local
/art/dt_fd_forward/
Ddt_fd_forward.cc120 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/
Dclasses.cc441 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/
Dchainagents.cc128 std::lock_guard<std::mutex> lk(unload_mutex); in Agent_OnUnload() local
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc70 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/
Dadbconnection.cc309 ScopedEventFdLock lk(adb_write_event_fd_); in CloseFds() local
348 ScopedEventFdLock lk(adb_write_event_fd_); in SendDdmPacket() local