Searched defs:lock (Results 1 - 10 of 10) sorted by relevance

/art/test/123-compiler-regressions-mt/src/
H A DMain.java81 private Object lock = new Object(); field in class:B17689750TestMonitor
87 synchronized (lock) {
92 synchronized (lock) {
100 synchronized (lock) {
107 synchronized (lock) {
/art/runtime/gc/
H A Dreference_queue.cc29 ReferenceQueue::ReferenceQueue(Mutex* lock) : lock_(lock), list_(nullptr) { argument
/art/runtime/native/
H A Djava_lang_Thread.cc131 // thread list lock to avoid this, as setting the thread name causes mutator to lock/unlock
135 // Take suspend thread lock to avoid races with threads trying to suspend this one.
165 mirror::Object* lock = soa.Decode<mirror::Object*>(java_lock); local
166 Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); local
/art/test/004-ThreadStress/src/
H A DMain.java157 private final Object lock; field in class:Main.TimedWait
159 public TimedWait(Object lock) { argument
160 this.lock = lock;
165 synchronized (lock) {
167 lock.wait(100, 0);
176 private final Object lock; field in class:Main.Wait
178 public Wait(Object lock) { argument
179 this.lock = lock;
195 private final Object lock; field in class:Main.SyncAndWork
197 SyncAndWork(Object lock) argument
213 createDefaultFrequencyMap(Object lock) argument
227 createLockFrequencyMap(Object lock) argument
241 updateFrequencyMap(Map<Operation, Double> in, Object lock, String arg) argument
361 runTest(final int numberOfThreads, final int operationsPerThread, final Object lock, Map<Operation, Double> frequencyMap) argument
471 private final Object lock; field in class:Main
476 Main(Object lock, int id, Operation[] operations) argument
[all...]
/art/runtime/arch/
H A Dstub_test.cc861 LockWord lock = obj->GetLockWord(false); local
862 LockWord::LockState old_state = lock.GetState();
870 EXPECT_EQ(lock_after.ThinLockCount(), 0U); // Thin lock starts count at zero
875 // Check we're at lock count i
883 // Force a fat lock by running identity hashcode to fill up lock word.
918 // NO_THREAD_SAFETY_ANALYSIS as we do not want to grab exclusive mutator lock for MonitorInfo.
931 static constexpr size_t kNumberOfLocks = 10; // Number of objects = lock
935 LockWord lock = obj->GetLockWord(false); variable
936 LockWord::LockState old_state = lock
[all...]
/art/runtime/
H A Dprofiler.cc90 // of which caller, the mutator lock must be held.
134 // Grab the mutator lock (shared access).
256 ScopedObjectAccess soa(self); // Acquire the mutator lock.
283 LOG(ERROR) << "Failed to lock profile file " << full_name;
391 wait_lock_("Profile wait lock"),
402 // We require mutator lock since some statistics will be updated here.
469 ProfileSampleResults::ProfileSampleResults(Mutex& lock) : lock_(lock), num_samples_(0), argument
H A Dthread.cc715 // If we're in kStarting, we won't have a thin lock id or tid yet.
806 // Grab the suspend_count lock and copy the current set of
808 // function will also grab this lock so we prevent a race between setting
819 // Outside the lock, run all the checkpoint functions that
1116 // Getting the identity hashcode here would result in lock inflation and suspension of the
1380 // Release locally held global references which releasing may require the mutator lock.
1408 // Thread.join() is implemented as an Object.wait() on the Thread.lock object. Signal anyone
1410 mirror::Object* lock = local
1412 // (This conditional is only needed for tests, where Thread.lock won't have been set.)
1413 if (lock !
[all...]
/art/compiler/utils/x86/
H A Dassembler_x86.cc1518 X86Assembler* X86Assembler::lock() { function in class:art::x86::X86Assembler
/art/runtime/entrypoints/quick/
H A Dquick_trampoline_entrypoints.cc1782 uint64_t artQuickGenericJniEndJNIRef(Thread* self, uint32_t cookie, jobject l, jobject lock) { argument
1783 if (lock != nullptr) {
1784 return reinterpret_cast<uint64_t>(JniMethodEndWithReferenceSynchronized(l, cookie, lock, self));
1790 void artQuickGenericJniEndJNINonRef(Thread* self, uint32_t cookie, jobject lock) { argument
1791 if (lock != nullptr) {
1792 JniMethodEndSynchronized(cookie, lock, self);
1862 jobject lock = called->IsSynchronized() ? visitor.GetFirstHandleScopeJObject() : nullptr; local
1864 artQuickGenericJniEndJNIRef(self, cookie, nullptr, lock);
1866 artQuickGenericJniEndJNINonRef(self, cookie, lock);
1890 jobject lock local
[all...]
/art/compiler/utils/x86_64/
H A Dassembler_x86_64.cc1989 X86_64Assembler* X86_64Assembler::lock() { function in class:art::x86_64::X86_64Assembler

Completed in 446 milliseconds