/art/test/123-compiler-regressions-mt/src/ |
H A D | Main.java | 81 private Object lock = new Object(); field in class:B17689750TestMonitor 87 synchronized (lock) { 92 synchronized (lock) { 100 synchronized (lock) { 107 synchronized (lock) {
|
/art/test/626-const-class-linking/src/ |
H A D | RacyLoader.java | 24 private Object lock = new Object(); field in class:RacyLoader 61 synchronized (lock) { 67 lock.wait(); 73 lock.notifyAll();
|
H A D | RacyMisbehavingLoader.java | 24 private Object lock = new Object(); field in class:RacyMisbehavingLoader 42 synchronized (lock) { 45 lock.notifyAll(); 82 synchronized (lock) { 88 lock.wait(); 94 lock.notifyAll();
|
/art/test/980-redefine-object/src-ex/ |
H A D | TestWatcher.java | 23 private static final ReentrantLock lock = new ReentrantLock(); field in class:TestWatcher 29 lock.lock(); 35 if (!lock.isHeldByCurrentThread()) { 39 lock.unlock();
|
/art/test/923-monitors/src/art/ |
H A D | Test923.java | 52 lock(id); 56 lock(id); 57 lock(id); 66 lock(id); 72 lock(id); 78 lock(id); 93 lock(id); 118 lock(id); 133 lock(id); 215 private static void lock(lon method in class:Test923 [all...] |
/art/runtime/gc/ |
H A D | reference_queue.cc | 29 ReferenceQueue::ReferenceQueue(Mutex* lock) : lock_(lock), list_(nullptr) { argument
|
/art/runtime/native/ |
H A D | java_lang_Thread.cc | 141 // thread list lock to avoid this, as setting the thread name causes mutator to lock/unlock 145 // Take suspend thread lock to avoid races with threads trying to suspend this one. 175 ObjPtr<mirror::Object> lock = soa.Decode<mirror::Object>(java_lock); local 176 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping);
|
/art/test/004-ThreadStress/src/ |
H A D | Main.java | 187 private final Object lock; field in class:Main.TimedWait 189 public TimedWait(Object lock) { argument 190 this.lock = lock; 195 synchronized (lock) { 197 lock.wait(SLEEP_TIME, 0); 206 private final Object lock; field in class:Main.Wait 208 public Wait(Object lock) { argument 209 this.lock = lock; 225 private final Object lock; field in class:Main.SyncAndWork 227 SyncAndWork(Object lock) argument 243 createDefaultFrequencyMap(Object lock) argument 258 createLockFrequencyMap(Object lock) argument 273 updateFrequencyMap(Map<Operation, Double> in, Object lock, String arg) argument 410 runTest(final int numberOfThreads, final int numberOfDaemons, final int operationsPerThread, final Object lock, Map<Operation, Double> frequencyMap) argument 562 private final Object lock; field in class:Main 567 Main(Object lock, int id, Operation[] operations) argument 598 Daemon(Object lock, int id, Operation[] operations, Thread mainThread, Barrier startBarrier) argument [all...] |
/art/runtime/arch/ |
H A D | stub_test.cc | 597 LockWord lock = obj->GetLockWord(false); local 598 LockWord::LockState old_state = lock.GetState(); 606 EXPECT_EQ(lock_after.ThinLockCount(), 0U); // Thin lock starts count at zero 611 // Check we're at lock count i 619 // Force a fat lock by running identity hashcode to fill up lock word. 654 // NO_THREAD_SAFETY_ANALYSIS as we do not want to grab exclusive mutator lock for MonitorInfo. 667 static constexpr size_t kNumberOfLocks = 10; // Number of objects = lock 671 LockWord lock = obj->GetLockWord(false); variable 672 LockWord::LockState old_state = lock [all...] |
/art/runtime/openjdkjvm/ |
H A D | OpenjdkJvm.cc | 369 art::ObjPtr<art::mirror::Object> lock = soa.Decode<art::mirror::Object>(java_lock); local 370 art::Monitor::Wait(art::Thread::Current(), lock.Ptr(), millis, 0, true, art::kSleeping); 418 // thread list lock to avoid this, as setting the thread name causes mutator to lock/unlock 422 // Take suspend thread lock to avoid races with threads trying to suspend this one.
|
/art/compiler/utils/x86/ |
H A D | assembler_x86.cc | 2328 X86Assembler* X86Assembler::lock() { function in class:art::x86::X86Assembler
|
/art/runtime/entrypoints/quick/ |
H A D | quick_trampoline_entrypoints.cc | 2037 jobject lock) { 2039 if (lock != nullptr) { 2040 return reinterpret_cast<uint64_t>(JniMethodEndWithReferenceSynchronized(l, cookie, lock, self)); 2049 jobject lock) { 2050 if (lock != nullptr) { 2051 JniMethodEndSynchronized(cookie, lock, self); 2178 jobject lock = called->IsSynchronized() ? visitor.GetFirstHandleScopeJObject() : nullptr; local 2180 artQuickGenericJniEndJNIRef(self, cookie, fast_native, nullptr, lock); 2182 artQuickGenericJniEndJNINonRef(self, cookie, fast_native, lock); 2242 // We're here just back from a native call. We don't have the shared mutator lock a 2033 artQuickGenericJniEndJNIRef(Thread* self, uint32_t cookie, bool fast_native ATTRIBUTE_UNUSED, jobject l, jobject lock) argument 2046 artQuickGenericJniEndJNINonRef(Thread* self, uint32_t cookie, bool fast_native, jobject lock) argument [all...] |
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64.cc | 2786 X86_64Assembler* X86_64Assembler::lock() { function in class:art::x86_64::X86_64Assembler
|
/art/runtime/ |
H A D | thread.cc | 1110 // If we're in kStarting, we won't have a thin lock id or tid yet. 1231 // Grab the suspend_count lock and copy the current set of 1233 // function requires the lock so we prevent a race between setting 1243 // will first test the kActiveSuspendBarrier flag without lock. Here 1245 // suspend_count lock. 1298 // Grab the suspend_count lock and copy the checkpoints one by one. When the last checkpoint is 1299 // copied, clear the list and the flag. The RequestCheckpoint function will also grab this lock 1321 // Outside the lock, run the checkpoint functions that we collected. 1413 // suspend-count lock for too long. 1760 // Getting the identity hashcode here would result in lock inflatio 2093 ObjPtr<mirror::Object> lock = local [all...] |