Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 46) sorted by relevance

12

/art/test/004-ThreadStress/src/
DMain.java187 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/
DTestWatcher.java23 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/
DRacyMisbehavingLoader.java24 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()
DRacyLoader.java24 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/
DMain.java81 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/
DTest923.java52 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/
DTest1903.java20 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/
DTest1907.java22 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/
DTest1906.java20 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/
DTest1904.java20 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/
DTest1909.java44 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/
DTest1902.java20 public static final Object lock = new Object(); field in Test1902
38 lock.wait(millis); in waitFor()
59 synchronized (lock) { in run()
/art/runtime/gc/
Dreference_queue_test.cc34 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()
Dreference_queue.cc30 ReferenceQueue::ReferenceQueue(Mutex* lock) : lock_(lock), list_(nullptr) { in ReferenceQueue() argument
Dreference_queue.h55 explicit ReferenceQueue(Mutex* lock);
/art/test/088-monitor-verification/
Dinfo.txt2 lock checks in the bytecode verifier.
/art/test/800-smali/smali/
Db_23502994.smali9 # 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/
Dinfo.txt1 Stress test for daemon threads stuck in a method that requires the thread list lock.
/art/test/702-LargeBranchOffset/src/
DMain.java.in37 DO_512_TIMES( synchronized(lock) { value++; } )
45 Object lock = new Object(); field in Main
/art/runtime/base/
Darena_allocator.cc302 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/
Dswap_space.cc109 MutexLock lock(Thread::Current(), lock_); in Alloc() local
191 MutexLock lock(Thread::Current(), lock_); in Free() local
Ddedupe_set-inl.h71 MutexLock lock(self, lock_);
88 MutexLock lock(self, lock_);
/art/runtime/native/
Djava_lang_Thread.cc181 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/
Dclear_dex_cache_types.cc41 ObjectLock<mirror::Class> lock(soa.Self(), klass); in Java_Main_nativeSkipVerification() local
/art/runtime/
Dmonitor_test.cc385 ObjectTryLock<mirror::Object> lock(self, obj_); in Run() local
386 EXPECT_FALSE(lock.Acquired()); in Run()

12