Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 38) 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/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.cc29 ReferenceQueue::ReferenceQueue(Mutex* lock) : lock_(lock), list_(nullptr) { in ReferenceQueue() argument
Dreference_queue.h53 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/702-LargeBranchOffset/src/
DMain.java.in37 DO_512_TIMES( synchronized(lock) { value++; } )
45 Object lock = new Object(); field in Main
/art/test/607-daemon-stress/
Dinfo.txt1 Stress test for daemon threads stuck in a method that requires the thread list lock.
/art/runtime/base/
Darena_allocator.cc298 MutexLock lock(Thread::Current(), lock_); in LockReclaimMemory() local
306 MutexLock lock(self, lock_); in AllocArena() local
324 MutexLock lock(Thread::Current(), lock_); in TrimMaps() local
333 MutexLock lock(Thread::Current(), lock_); in GetBytesAllocated() local
352 MutexLock lock(self, lock_); in FreeArenaChain() local
/art/runtime/native/
Djava_lang_Thread.cc175 ObjPtr<mirror::Object> lock = soa.Decode<mirror::Object>(java_lock); in Thread_sleep() local
176 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
/art/compiler/utils/
Dswap_space.cc108 MutexLock lock(Thread::Current(), lock_); in Alloc() local
190 MutexLock lock(Thread::Current(), lock_); in Free() local
Ddedupe_set-inl.h71 MutexLock lock(self, lock_);
88 MutexLock lock(self, lock_);
/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()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc2037 jobject lock) { in artQuickGenericJniEndJNIRef() argument
2039 if (lock != nullptr) { in artQuickGenericJniEndJNIRef()
2040 return reinterpret_cast<uint64_t>(JniMethodEndWithReferenceSynchronized(l, cookie, lock, self)); in artQuickGenericJniEndJNIRef()
2049 jobject lock) { in artQuickGenericJniEndJNINonRef() argument
2050 if (lock != nullptr) { in artQuickGenericJniEndJNINonRef()
2051 JniMethodEndSynchronized(cookie, lock, self); in artQuickGenericJniEndJNINonRef()
2178 jobject lock = called->IsSynchronized() ? visitor.GetFirstHandleScopeJObject() : nullptr; in artQuickGenericJniTrampoline() local
2180 artQuickGenericJniEndJNIRef(self, cookie, fast_native, nullptr, lock); in artQuickGenericJniTrampoline()
2182 artQuickGenericJniEndJNINonRef(self, cookie, fast_native, lock); in artQuickGenericJniTrampoline()
/art/runtime/openjdkjvm/
DOpenjdkJvm.cc369 art::ObjPtr<art::mirror::Object> lock = soa.Decode<art::mirror::Object>(java_lock); in JVM_Sleep() local
370 art::Monitor::Wait(art::Thread::Current(), lock.Ptr(), millis, 0, true, art::kSleeping); in JVM_Sleep()
/art/runtime/openjdkjvmti/
Dti_monitor.cc81 mutex_.lock(); in MonitorEnter()
/art/compiler/utils/x86/
Dassembler_x86.h682 X86Assembler* lock();
701 lock()->cmpxchgl(address, reg); in LockCmpxchgl()
705 lock()->cmpxchg8b(address); in LockCmpxchg8b()
/art/runtime/jit/
Djit_code_cache.h206 MutexLock lock(Thread::Current(), lock_); in GetCurrentCapacity()
/art/compiler/utils/x86_64/
Dassembler_x86_64.h717 X86_64Assembler* lock();
771 lock()->cmpxchgl(address, reg); in LockCmpxchgl()
775 lock()->cmpxchgq(address, reg); in LockCmpxchgq()

12