/art/test/004-ThreadStress/src/ |
D | Main.java | 187 private final Object lock; field in Main.TimedWait 189 public TimedWait(Object lock) { in TimedWait() argument 190 this.lock = lock; in TimedWait() 195 synchronized (lock) { in perform() 197 lock.wait(SLEEP_TIME, 0); in perform() 206 private final Object lock; field in Main.Wait 208 public Wait(Object lock) { in Wait() argument 209 this.lock = lock; in Wait() 214 synchronized (lock) { in perform() 216 lock.wait(); in perform() [all …]
|
/art/test/980-redefine-object/src-ex/ |
D | TestWatcher.java | 23 private static final ReentrantLock lock = new ReentrantLock(); field in TestWatcher 29 lock.lock(); in MonitorEnter() 35 if (!lock.isHeldByCurrentThread()) { in MonitorExit() 39 lock.unlock(); in MonitorExit()
|
/art/test/626-const-class-linking/src/ |
D | RacyMisbehavingLoader.java | 24 private Object lock = new Object(); field in RacyMisbehavingLoader 42 synchronized (lock) { in reportAfterLoading() 45 lock.notifyAll(); in reportAfterLoading() 82 synchronized (lock) { in syncWithOtherInstances() 88 lock.wait(); in syncWithOtherInstances() 94 lock.notifyAll(); in syncWithOtherInstances()
|
D | RacyLoader.java | 24 private Object lock = new Object(); field in RacyLoader 61 synchronized (lock) { in syncWithOtherInstances() 67 lock.wait(); in syncWithOtherInstances() 73 lock.notifyAll(); in syncWithOtherInstances()
|
/art/test/123-compiler-regressions-mt/src/ |
D | Main.java | 81 private Object lock = new Object(); field in B17689750TestMonitor 87 synchronized (lock) { in thread1() 92 synchronized (lock) { in thread1() 100 synchronized (lock) { in thread2() 107 synchronized (lock) { in thread2()
|
/art/test/923-monitors/src/art/ |
D | Test923.java | 52 lock(id); in simpleTests() 56 lock(id); in simpleTests() 57 lock(id); in simpleTests() 66 lock(id); in simpleTests() 72 lock(id); in simpleTests() 78 lock(id); in simpleTests() 93 lock(id); in threadTests() 118 lock(id); in threadTests() 133 lock(id); in threadTests() 215 private static void lock(long id) { in lock() method in Test923
|
/art/test/1903-suspend-self/src/art/ |
D | Test1903.java | 20 public static final Object lock = new Object(); field in Test1903 45 lock.wait(millis); in waitFor() 65 synchronized (lock) { in run()
|
/art/test/1907-suspend-list-self-twice/src/art/ |
D | Test1907.java | 22 public static final Object lock = new Object(); field in Test1907 26 lock.wait(millis); in waitFor() 40 synchronized (lock) { in run()
|
/art/test/1906-suspend-list-me-first/src/art/ |
D | Test1906.java | 20 public static final Object lock = new Object(); field in Test1906 27 lock.wait(millis); in waitFor() 41 synchronized (lock) { in run()
|
/art/test/1904-double-suspend/src/art/ |
D | Test1904.java | 20 public static final Object lock = new Object(); field in Test1904 38 lock.wait(millis); in waitFor() 59 synchronized (lock) { in run()
|
/art/test/1909-per-agent-tls/src/art/ |
D | Test1909.java | 44 public final Object lock; field in Test1909.ThreadWaiter 48 this.lock = new Object(); in ThreadWaiter() 51 synchronized (lock) { in ThreadWaiter() 53 this.lock.wait(); in ThreadWaiter() 66 synchronized (lock) { in cleanup() 68 lock.notifyAll(); in cleanup()
|
/art/test/1902-suspend/src/art/ |
D | Test1902.java | 20 public static final Object lock = new Object(); field in Test1902 38 lock.wait(millis); in waitFor() 59 synchronized (lock) { in run()
|
/art/runtime/gc/ |
D | reference_queue_test.cc | 34 Mutex lock("Reference queue lock"); in TEST_F() local 35 ReferenceQueue queue(&lock); in TEST_F() 68 Mutex lock("Reference queue lock"); in TEST_F() local 69 ReferenceQueue queue(&lock); in TEST_F()
|
D | reference_queue.cc | 30 ReferenceQueue::ReferenceQueue(Mutex* lock) : lock_(lock), list_(nullptr) { in ReferenceQueue() argument
|
D | reference_queue.h | 55 explicit ReferenceQueue(Mutex* lock);
|
/art/test/088-monitor-verification/ |
D | info.txt | 2 lock checks in the bytecode verifier.
|
/art/test/800-smali/smali/ |
D | b_23502994.smali | 9 # Sharpen, and try to unlock (in both branches). We should not lose the lock info when we make 35 # Sharpen, and try to unlock. We should not lose the lock info when we make the register type
|
/art/test/607-daemon-stress/ |
D | info.txt | 1 Stress test for daemon threads stuck in a method that requires the thread list lock.
|
/art/test/702-LargeBranchOffset/src/ |
D | Main.java.in | 37 DO_512_TIMES( synchronized(lock) { value++; } ) 45 Object lock = new Object(); field in Main
|
/art/runtime/base/ |
D | arena_allocator.cc | 302 MutexLock lock(Thread::Current(), lock_); in LockReclaimMemory() local 310 MutexLock lock(self, lock_); in AllocArena() local 328 MutexLock lock(Thread::Current(), lock_); in TrimMaps() local 337 MutexLock lock(Thread::Current(), lock_); in GetBytesAllocated() local 367 MutexLock lock(self, lock_); in FreeArenaChain() local
|
/art/compiler/utils/ |
D | swap_space.cc | 109 MutexLock lock(Thread::Current(), lock_); in Alloc() local 191 MutexLock lock(Thread::Current(), lock_); in Free() local
|
D | dedupe_set-inl.h | 71 MutexLock lock(self, lock_); 88 MutexLock lock(self, lock_);
|
/art/runtime/native/ |
D | java_lang_Thread.cc | 181 ObjPtr<mirror::Object> lock = soa.Decode<mirror::Object>(java_lock); in Thread_sleep() local 182 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|
/art/test/626-const-class-linking/ |
D | clear_dex_cache_types.cc | 41 ObjectLock<mirror::Class> lock(soa.Self(), klass); in Java_Main_nativeSkipVerification() local
|
/art/runtime/ |
D | monitor_test.cc | 385 ObjectTryLock<mirror::Object> lock(self, obj_); in Run() local 386 EXPECT_FALSE(lock.Acquired()); in Run()
|