/art/runtime/base/ |
D | mutex_test.cc | 27 static void AssertDepth(Mutex& mu, uint32_t expected_depth) { in AssertDepth() 28 ASSERT_EQ(expected_depth, mu.GetDepth()); in AssertDepth() 32 mu.AssertNotHeld(Thread::Current()); in AssertDepth() 34 mu.AssertHeld(Thread::Current()); in AssertDepth() 40 Mutex mu("test mutex"); in TEST_F() local 41 MutexTester::AssertDepth(mu, 0U); in TEST_F() 42 mu.Lock(Thread::Current()); in TEST_F() 43 MutexTester::AssertDepth(mu, 1U); in TEST_F() 44 mu.Unlock(Thread::Current()); in TEST_F() 45 MutexTester::AssertDepth(mu, 0U); in TEST_F() [all …]
|
D | mutex.h | 199 std::ostream& operator<<(std::ostream& os, const Mutex& mu); 283 std::ostream& operator<<(std::ostream& os, const ReaderWriterMutex& mu); 421 explicit MutexLock(Thread* self, Mutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : self_(self), mu_(mu) { in MutexLock() argument 441 explicit ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in ReaderMutexLock() argument 442 self_(self), mu_(mu) { in ReaderMutexLock() 463 explicit WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock() argument 464 self_(self), mu_(mu) { in WriterMutexLock()
|
D | timing_logger.cc | 50 MutexLock mu(Thread::Current(), lock_); in SetName() local 58 MutexLock mu(Thread::Current(), lock_); in End() local 63 MutexLock mu(Thread::Current(), lock_); in Reset() local 70 MutexLock mu(Thread::Current(), lock_); in AddLogger() local 82 MutexLock mu(Thread::Current(), lock_); in GetIterations() local 87 MutexLock mu(Thread::Current(), lock_); in Dump() local
|
/art/runtime/ |
D | thread_list.cc | 58 MutexLock mu(self, *Locks::thread_list_lock_); in ~ThreadList() local 89 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpNativeStacks() local 99 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpForSigQuit() local 132 MutexLock mu(self, *Locks::thread_list_lock_); in DumpUnattachedThreads() local 152 MutexLock mu(self, *Locks::thread_list_lock_); in AssertThreadsAreSuspended() local 212 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpoint() local 288 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpointOnRunnableThreads() local 322 MutexLock mu(self, *Locks::thread_list_lock_); in SuspendAll() local 385 MutexLock mu(self, *Locks::thread_list_lock_); in ResumeAll() local 423 MutexLock mu(self, *Locks::thread_list_lock_); in Resume() local [all …]
|
D | thread_pool.cc | 69 MutexLock mu(self, task_queue_lock_); in AddTask() local 100 MutexLock mu(Thread::Current(), task_queue_lock_); in SetMaxActiveWorkers() local 108 MutexLock mu(self, task_queue_lock_); in ~ThreadPool() local 120 MutexLock mu(self, task_queue_lock_); in StartWorkers() local 128 MutexLock mu(self, task_queue_lock_); in StopWorkers() local 133 MutexLock mu(self, task_queue_lock_); in GetTask() local 165 MutexLock mu(self, task_queue_lock_); in TryGetTask() local 187 MutexLock mu(self, task_queue_lock_); in Wait() local 198 MutexLock mu(self, task_queue_lock_); in GetTaskCount() local 215 MutexLock mu(self, thread_pool->work_steal_lock_); in Run() local [all …]
|
D | barrier.cc | 31 MutexLock mu(self, lock_); in Pass() local 40 MutexLock mu(self, lock_); in Init() local 45 MutexLock mu(self, lock_); in Increment() local 61 MutexLock mu(self, lock_); in Increment() local
|
D | atomic.cc | 47 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexRead64() local 52 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexWrite64() local 58 MutexLock mu(Thread::Current(), *GetSwapMutex(addr)); in SwapMutexCas64() local
|
D | intern_table.cc | 38 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() local 43 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() local 48 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() local 57 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() local 94 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in SwapPostZygoteWithPreZygote() local 152 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddImageStringsToTable() local 206 MutexLock mu(self, *Locks::intern_table_lock_); in AllowNewInterns() local 213 MutexLock mu(self, *Locks::intern_table_lock_); in DisallowNewInterns() local 222 MutexLock mu(self, *Locks::intern_table_lock_); in Insert() local 270 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in ContainsWeak() local [all …]
|
D | monitor.cc | 138 MutexLock mu(self, monitor_lock_); // Uncontended mutex acquisition as monitor isn't yet public. in Install() local 234 MutexLock mu(self, monitor_lock_); in Lock() local 332 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in FailedUnlock() local 384 MutexLock mu(self, monitor_lock_); in Unlock() local 489 MutexLock mu(self, *self->GetWaitMutex()); in Wait() local 527 MutexLock mu(self, *self->GetWaitMutex()); in Wait() local 561 MutexLock mu(self, *self->GetWaitMutex()); in Wait() local 573 MutexLock mu(self, monitor_lock_); in Notify() local 586 MutexLock mu(self, *thread->GetWaitMutex()); in Notify() local 596 MutexLock mu(self, monitor_lock_); in NotifyAll() local [all …]
|
D | signal_catcher.cc | 75 MutexLock mu(self, lock_); in SignalCatcher() local 90 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag() local 95 MutexLock mu(Thread::Current(), lock_); in ShouldHalt() local 205 MutexLock mu(self, signal_catcher->lock_); in Run() local
|
D | instrumentation.cc | 599 MutexLock mu(self, *Locks::thread_list_lock_); in ConfigureStubs() local 608 ReaderMutexLock mu(self, deoptimized_methods_lock_); in ConfigureStubs() local 613 MutexLock mu(self, *Locks::thread_list_lock_); in ConfigureStubs() local 633 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in SetEntrypointsInstrumented() local 643 MutexLock mu(Thread::Current(), *Locks::instrument_entrypoints_lock_); in InstrumentQuickAllocEntryPoints() local 648 MutexLock mu(Thread::Current(), *Locks::instrument_entrypoints_lock_); in UninstrumentQuickAllocEntryPoints() local 674 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in ResetQuickAllocEntryPoints() local 791 WriterMutexLock mu(self, deoptimized_methods_lock_); in Deoptimize() local 808 MutexLock mu(self, *Locks::thread_list_lock_); in Deoptimize() local 821 WriterMutexLock mu(self, deoptimized_methods_lock_); in Undeoptimize() local [all …]
|
D | transaction.cc | 39 MutexLock mu(Thread::Current(), log_lock_); in ~Transaction() local 63 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteField32() local 71 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteField64() local 79 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldReference() local 88 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteArray() local 115 MutexLock mu(Thread::Current(), log_lock_); in LogInternedString() local 159 MutexLock mu(Thread::Current(), log_lock_); in VisitRoots() local
|
D | trace.cc | 307 MutexLock mu(self, *Locks::trace_lock_); in RunSamplingThread() local 316 MutexLock mu(self, *Locks::thread_list_lock_); in RunSamplingThread() local 331 MutexLock mu(self, *Locks::trace_lock_); in Start() local 372 MutexLock mu(self, *Locks::trace_lock_); in Start() local 407 MutexLock mu(Thread::Current(), *Locks::trace_lock_); in Stop() local 421 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in Stop() local 461 MutexLock mu(Thread::Current(), *Locks::trace_lock_); in GetMethodTracingMode() local 722 MutexLock mu(self, *Locks::thread_list_lock_); in DumpThreadList() local 727 MutexLock mu(thread, *Locks::trace_lock_); in StoreExitingThreadInfo() local
|
/art/compiler/dex/ |
D | verification_results.cc | 44 WriterMutexLock mu(self, verified_methods_lock_); in ~VerificationResults() local 64 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod() local 82 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod() local 88 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in RemoveVerifiedMethod() local 98 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass() local 105 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected() local
|
/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 132 MutexLock mu(self, lock_); in AllocWithGrowth() local 160 MutexLock mu(self, lock_); in Free() local 189 MutexLock mu(self, lock_); in FreeList() local 210 MutexLock mu(self, lock_); in FreeList() local 238 MutexLock mu(Thread::Current(), lock_); in Trim() local 249 MutexLock mu(Thread::Current(), lock_); in Walk() local 255 MutexLock mu(Thread::Current(), lock_); in GetFootprint() local 260 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit() local 265 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit() local 278 MutexLock mu(Thread::Current(), lock_); in GetBytesAllocated() local [all …]
|
D | bump_pointer_space.cc | 78 MutexLock mu(Thread::Current(), block_lock_); in Clear() local 96 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers() local 102 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in RevokeAllThreadLocalBuffers() local 113 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked() local 121 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in AssertAllThreadLocalBuffersAreRevoked() local 158 MutexLock mu(Thread::Current(), block_lock_); in Walk() local 212 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetBytesAllocated() local 230 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetObjectsAllocated() local 251 MutexLock mu(Thread::Current(), block_lock_); in AllocNewTlab() local
|
D | rosalloc_space.cc | 150 MutexLock mu(self, lock_); in AllocWithGrowth() local 180 MutexLock mu(self, lock_); in Free() local 200 MutexLock mu(self, lock_); in FreeList() local 239 MutexLock mu(Thread::Current(), lock_); in Trim() local 256 MutexLock mu(Thread::Current(), lock_); in GetFootprint() local 261 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit() local 266 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit() local 298 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in InspectAllRosAllocWithSuspendAll() local
|
D | large_object_space.cc | 119 MutexLock mu(self, lock_); in Alloc() local 142 MutexLock mu(self, lock_); in Free() local 158 MutexLock mu(Thread::Current(), lock_); in AllocationSize() local 176 MutexLock mu(Thread::Current(), lock_); in Walk() local 190 MutexLock mu(self, lock_); in Contains() local 314 MutexLock mu(Thread::Current(), lock_); in Walk() local 340 MutexLock mu(self, lock_); in Free() local 411 MutexLock mu(self, lock_); in Alloc() local 465 MutexLock mu(Thread::Current(), const_cast<Mutex&>(lock_)); in Dump() local
|
/art/runtime/jdwp/ |
D | object_registry.cc | 60 MutexLock mu(soa.Self(), lock_); in InternalAdd() local 109 MutexLock mu(self, lock_); in Clear() local 129 MutexLock mu(self, lock_); in InternalGet() local 143 MutexLock mu(self, lock_); in GetJObject() local 152 MutexLock mu(self, lock_); in DisableCollection() local 160 MutexLock mu(self, lock_); in EnableCollection() local 190 MutexLock mu(self, lock_); in IsCollected() local 204 MutexLock mu(self, lock_); in DisposeObject() local
|
D | jdwp_event.cc | 225 MutexLock mu(Thread::Current(), event_list_lock_); in RegisterEvent() local 316 MutexLock mu(Thread::Current(), event_list_lock_); in UnregisterEventById() local 343 MutexLock mu(Thread::Current(), event_list_lock_); in UnregisterAll() local 671 MutexLock mu(self, event_thread_lock_); in SetWaitForEventThread() local 702 MutexLock mu(self, event_thread_lock_); in ClearWaitForEventThread() local 768 MutexLock mu(Thread::Current(), event_list_lock_); // probably don't need this here in PostVMStart() local 879 MutexLock mu(Thread::Current(), event_list_lock_); in PostLocationEvent() local 924 MutexLock mu(Thread::Current(), event_list_lock_); in PostLocationEvent() local 963 MutexLock mu(Thread::Current(), event_list_lock_); in PostFieldEvent() local 1024 MutexLock mu(Thread::Current(), event_list_lock_); in PostFieldEvent() local [all …]
|
D | jdwp_main.cc | 128 MutexLock mu(Thread::Current(), socket_lock_); in WritePacket() local 137 MutexLock mu(Thread::Current(), socket_lock_); in WriteBufferedPacket() local 319 MutexLock mu(Thread::Current(), event_list_lock_); in ResetState() local 458 MutexLock mu(thread_, attach_lock_); in Run() local 494 MutexLock mu(thread_, attach_lock_); in Run() local
|
/art/runtime/native/ |
D | java_lang_Thread.cc | 42 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted() local 63 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus() local 103 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeHoldsLock() local 110 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeInterrupt() local 136 MutexLock mu(self, *Locks::thread_list_suspend_thread_lock_); in Thread_nativeSetName() local 158 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeSetPriority() local
|
/art/runtime/gc/ |
D | reference_processor.cc | 58 MutexLock mu(self, *Locks::reference_processor_lock_); in GetReferent() local 101 MutexLock mu(self, *Locks::reference_processor_lock_); in StartPreservingReferences() local 106 MutexLock mu(self, *Locks::reference_processor_lock_); in StopPreservingReferences() local 122 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local 170 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local 234 MutexLock mu(self, *Locks::reference_processor_lock_); in MakeCircularListIfUnenqueued() local
|
/art/compiler/dex/quick/ |
D | dex_file_to_method_inliner_map.cc | 43 ReaderMutexLock mu(self, lock_); in GetMethodInliner() local 58 WriterMutexLock mu(self, lock_); in GetMethodInliner() local
|
/art/runtime/gc/allocator/ |
D | rosalloc.cc | 458 MutexLock mu(self, lock_); in AllocLargeObject() local 491 MutexLock mu(self, lock_); in FreeInternal() local 538 MutexLock mu(self, lock_); in AllocRun() local 659 MutexLock mu(self, *size_bracket_locks_[idx]); in AllocFromRun() local 672 MutexLock mu(self, *size_bracket_locks_[idx]); in AllocFromRun() local 727 MutexLock mu(self, *size_bracket_locks_[idx]); in AllocFromRun() local 748 MutexLock mu(self, *size_bracket_locks_[idx]); in FreeFromRun() local 788 MutexLock mu(self, lock_); in FreeFromRun() local 1190 MutexLock mu(self, lock_); in BulkFree() local 1198 MutexLock mu(self, lock_); in BulkFree() local [all …]
|