Home
last modified time | relevance | path

Searched refs:mu (Results 1 – 25 of 99) sorted by relevance

1234

/art/runtime/base/
Dmutex_test.cc27 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 …]
Dmutex.h227 std::ostream& operator<<(std::ostream& os, const Mutex& mu);
314 std::ostream& operator<<(std::ostream& os, const ReaderWriterMutex& mu);
431 std::ostream& operator<<(std::ostream& os, const MutatorMutex& mu);
493 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() argument
513 ALWAYS_INLINE ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) ACQUIRE(mu);
527 WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock() argument
528 self_(self), mu_(mu) { in WriterMutexLock()
/art/runtime/
Dlinear_alloc.cc27 MutexLock mu(self, lock_); in Realloc() local
32 MutexLock mu(self, lock_); in Alloc() local
37 MutexLock mu(self, lock_); in AllocAlign16() local
42 MutexLock mu(Thread::Current(), lock_); in GetUsedMemory() local
47 MutexLock mu(Thread::Current(), lock_); in GetArenaPool() local
52 MutexLock mu(Thread::Current(), lock_); in Contains() local
Dclass_table.cc32 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() local
37 ReaderMutexLock mu(Thread::Current(), lock_); in Contains() local
49 ReaderMutexLock mu(Thread::Current(), lock_); in LookupByDescriptor() local
67 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() local
105 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() local
114 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() local
119 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedZygoteClasses() local
128 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedNonZygoteClasses() local
134 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() local
146 WriterMutexLock mu(Thread::Current(), lock_); in TryInsert() local
[all …]
Dbarrier.cc33 MutexLock mu(self, lock_); in Pass() local
42 MutexLock mu(self, lock_); in Init() local
47 MutexLock mu(self, lock_); in Increment() local
63 MutexLock mu(self, lock_); in Increment() local
84 MutexLock mu(self, lock_); in GetCount() local
Dthread_pool.cc106 MutexLock mu(self, task_queue_lock_); in AddTask() local
115 MutexLock mu(self, task_queue_lock_); in RemoveAllTasks() local
145 MutexLock mu(Thread::Current(), task_queue_lock_); in SetMaxActiveWorkers() local
153 MutexLock mu(self, task_queue_lock_); in ~ThreadPool() local
165 MutexLock mu(self, task_queue_lock_); in StartWorkers() local
173 MutexLock mu(self, task_queue_lock_); in StopWorkers() local
178 MutexLock mu(self, task_queue_lock_); in GetTask() local
210 MutexLock mu(self, task_queue_lock_); in TryGetTask() local
233 MutexLock mu(self, task_queue_lock_); in Wait() local
244 MutexLock mu(self, task_queue_lock_); in GetTaskCount() local
Datomic.cc47 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
Dintern_table.cc44 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() local
49 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() local
54 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() local
63 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() local
92 MutexLock mu(self, *Locks::intern_table_lock_); in LookupWeak() local
97 MutexLock mu(self, *Locks::intern_table_lock_); in LookupStrong() local
108 MutexLock mu(self, *Locks::intern_table_lock_); in LookupStrong() local
121 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddNewTable() local
181 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddImagesStringsToTable() local
194 MutexLock mu(self, *Locks::intern_table_lock_); in BroadcastForNewInterns() local
[all …]
Dthread_list.cc97 MutexLock mu(self, *Locks::thread_list_lock_); in ShutDown() local
135 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpNativeStacks() local
185 MutexLock mu(self, *Locks::thread_list_lock_); in DumpUnattachedThreads() local
221 MutexLock mu(self, *Locks::logging_lock_); in Run() local
252 MutexLock mu(self, *Locks::thread_list_lock_); in Dump() local
272 MutexLock mu(self, *Locks::thread_list_lock_); in AssertThreadsAreSuspended() local
319 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpoint() local
403 MutexLock mu(self, *Locks::thread_list_lock_); in RunEmptyCheckpoint() local
511 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpointOnRunnableThreads() local
567 MutexLock mu(self, *Locks::thread_list_lock_); in FlipThreadRoots() local
[all …]
Djava_vm_ext.cc109 MutexLock mu(self, jni_on_load_lock_); in CheckOnLoadResult() local
132 MutexLock mu(self, jni_on_load_lock_); in SetResult() local
282 MutexLock mu(self, *Locks::jni_libraries_lock_); in FindNativeMethodInternal() local
312 MutexLock mu(self, *Locks::jni_libraries_lock_); in UnloadNativeLibraries() local
590 WriterMutexLock mu(self, *Locks::jni_globals_lock_); in AddGlobalRef() local
599 MutexLock mu(self, *Locks::jni_weak_globals_lock_); in AddWeakGlobalRef() local
617 WriterMutexLock mu(self, *Locks::jni_globals_lock_); in DeleteGlobalRef() local
628 MutexLock mu(self, *Locks::jni_weak_globals_lock_); in DeleteWeakGlobalRef() local
644 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in SetCheckJniEnabled() local
656 ReaderMutexLock mu(self, *Locks::jni_globals_lock_); in DumpForSigQuit() local
[all …]
Dclass_table-inl.h29 ReaderMutexLock mu(Thread::Current(), lock_); in VisitRoots()
47 ReaderMutexLock mu(Thread::Current(), lock_); in VisitRoots()
65 ReaderMutexLock mu(Thread::Current(), lock_); in Visit()
78 ReaderMutexLock mu(Thread::Current(), lock_); in Visit()
137 WriterMutexLock mu(Thread::Current(), lock_); in RemoveStrongRoots()
Dtransaction.cc43 MutexLock mu(Thread::Current(), log_lock_); in ~Transaction() local
67 MutexLock mu(Thread::Current(), log_lock_); in Abort() local
96 MutexLock mu(Thread::Current(), log_lock_); in IsAborted() local
101 MutexLock mu(Thread::Current(), log_lock_); in GetAbortMessage() local
110 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldBoolean() local
120 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldByte() local
130 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldChar() local
141 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldShort() local
152 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteField32() local
162 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteField64() local
[all …]
/art/runtime/gc/
Dtask_processor.cc38 MutexLock mu(self, *lock_); in AddTask() local
45 MutexLock mu(self, *lock_); in GetTask() local
75 MutexLock mu(self, *lock_); in UpdateTargetRunTime() local
97 MutexLock mu(Thread::Current(), *lock_); in IsRunning() local
102 MutexLock mu(Thread::Current(), *lock_); in GetRunningThread() local
107 MutexLock mu(self, *lock_); in Stop() local
114 MutexLock mu(self, *lock_); in Start() local
Dreference_processor.cc60 MutexLock mu(self, *Locks::reference_processor_lock_); in BroadcastForSlowPath() local
77 MutexLock mu(self, *Locks::reference_processor_lock_); in GetReferent() local
116 MutexLock mu(self, *Locks::reference_processor_lock_); in StartPreservingReferences() local
121 MutexLock mu(self, *Locks::reference_processor_lock_); in StopPreservingReferences() local
135 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local
194 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local
275 ReaderMutexLock mu(self, *Locks::mutator_lock_); in EnqueueClearedReferences() local
295 MutexLock mu(self, *Locks::reference_processor_lock_); in ClearReferent() local
322 MutexLock mu(self, *Locks::reference_processor_lock_); in MakeCircularListIfUnenqueued() local
Dsystem_weak.h52 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Allow()
61 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Disallow()
67 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Broadcast()
/art/compiler/dex/
Dverification_results.cc39 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ~VerificationResults() local
74 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod() local
111 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod() local
132 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass() local
139 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected() local
158 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in AddDexFile() local
/art/runtime/gc/space/
Dbump_pointer_space.cc79 MutexLock mu(Thread::Current(), block_lock_); in Clear() local
97 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers() local
104 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in RevokeAllThreadLocalBuffers() local
116 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked() local
124 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in AssertAllThreadLocalBuffersAreRevoked() local
165 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetBytesAllocated() local
183 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetObjectsAllocated() local
204 MutexLock mu(Thread::Current(), block_lock_); in AllocNewTlab() local
Ddlmalloc_space.cc134 MutexLock mu(self, lock_); in AllocWithGrowth() local
169 MutexLock mu(self, lock_); in Free() local
198 MutexLock mu(self, lock_); in FreeList() local
219 MutexLock mu(self, lock_); in FreeList() local
226 MutexLock mu(Thread::Current(), lock_); in Trim() local
237 MutexLock mu(Thread::Current(), lock_); in Walk() local
243 MutexLock mu(Thread::Current(), lock_); in GetFootprint() local
248 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit() local
253 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit() local
266 MutexLock mu(Thread::Current(), lock_); in GetBytesAllocated() local
[all …]
Dregion_space.cc123 MutexLock mu(Thread::Current(), region_lock_); in FromSpaceSize() local
135 MutexLock mu(Thread::Current(), region_lock_); in UnevacFromSpaceSize() local
147 MutexLock mu(Thread::Current(), region_lock_); in ToSpaceSize() local
198 MutexLock mu(Thread::Current(), region_lock_); in SetFromSpace() local
266 MutexLock mu(Thread::Current(), region_lock_); in ClearFromSpace() local
358 MutexLock mu(Thread::Current(), region_lock_); in LogFragmentationAllocFailure() local
396 MutexLock mu(Thread::Current(), region_lock_); in Clear() local
417 MutexLock mu(Thread::Current(), region_lock_); in FreeLarge() local
439 MutexLock mu(Thread::Current(), region_lock_); in DumpRegions() local
446 MutexLock mu(Thread::Current(), region_lock_); in DumpNonFreeRegions() local
[all …]
Dlarge_object_space.cc48 MutexLock mu(Thread::Current(), lock_); in ~MemoryToolLargeObjectMapSpace() local
146 MutexLock mu(self, lock_); in Alloc() local
170 MutexLock mu(self, lock_); in IsZygoteLargeObject() local
177 MutexLock mu(self, lock_); in SetAllLargeObjectsAsZygoteObjects() local
184 MutexLock mu(self, lock_); in Free() local
203 MutexLock mu(Thread::Current(), lock_); in AllocationSize() local
225 MutexLock mu(Thread::Current(), lock_); in Walk() local
239 MutexLock mu(self, lock_); in Contains() local
377 MutexLock mu(Thread::Current(), lock_); in Walk() local
403 MutexLock mu(self, lock_); in Free() local
[all …]
/art/runtime/jit/
Djit_code_cache.cc190 MutexLock mu(Thread::Current(), lock_); in ContainsMethod() local
373 MutexLock mu(Thread::Current(), lock_); in SweepRootTables() local
424 MutexLock mu(Thread::Current(), *Locks::cha_lock_); in FreeAllMethodHeaders() local
433 MutexLock mu(Thread::Current(), lock_); in FreeAllMethodHeaders() local
448 MutexLock mu(self, lock_); in RemoveMethodsIn() local
497 MutexLock mu(self, lock_); in WaitUntilInlineCacheAccessible() local
505 MutexLock mu(self, lock_); in BroadcastForInlineCacheAccess() local
574 MutexLock mu(self, lock_); in CommitCodeInternal() local
642 MutexLock mu(self, lock_); in CommitCodeInternal() local
689 MutexLock mu(Thread::Current(), lock_); in CodeCacheSize() local
[all …]
Ddebugger_interface.cc120 MutexLock mu(self, g_jit_debug_mutex); in CreateJITCodeEntry() local
126 MutexLock mu(self, g_jit_debug_mutex); in DeleteJITCodeEntry() local
136 MutexLock mu(self, g_jit_debug_mutex); in CreateJITCodeEntryForAddress() local
145 MutexLock mu(self, g_jit_debug_mutex); in DeleteJITCodeEntryForAddress() local
Dprofile_saver.cc114 MutexLock mu(self, wait_lock_); in Run() local
133 MutexLock mu(self, wait_lock_); in Run() local
148 MutexLock mu(self, wait_lock_); in Run() local
181 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in NotifyJitActivity() local
321 ReaderMutexLock mu(soa.Self(), *Locks::classlinker_classes_lock_); in SampleClassesAndExecutedMethods() local
385 MutexLock mu(self, *Locks::profiler_lock_); in FetchAndCacheResolvedClassesAndMethods() local
399 MutexLock mu(self, *Locks::profiler_lock_); in FetchAndCacheResolvedClassesAndMethods() local
471 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in ProcessProfilingInfo() local
627 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in Start() local
729 MutexLock mu(self, *Locks::profiler_lock_); in ShuttingDown() local
[all …]
/art/runtime/jdwp/
Dobject_registry.cc97 MutexLock mu(soa.Self(), lock_); in InternalAdd() local
161 MutexLock mu(self, lock_); in Clear() local
181 MutexLock mu(self, lock_); in InternalGet() local
197 MutexLock mu(self, lock_); in GetJObject() local
206 MutexLock mu(self, lock_); in DisableCollection() local
214 MutexLock mu(self, lock_); in EnableCollection() local
244 MutexLock mu(self, lock_); in IsCollected() local
258 MutexLock mu(self, lock_); in DisposeObject() local
Djdwp_adb.cc101 MutexLock mu(Thread::Current(), state_lock_); in Shutdown() local
126 MutexLock mu(Thread::Current(), state_lock_); in IsDown() local
131 MutexLock mu(Thread::Current(), state_lock_); in ControlSock() local
199 MutexLock mu(Thread::Current(), state_lock_); in ReceiveClientFd() local
240 MutexLock mu(Thread::Current(), state_lock_); in Accept() local
309 MutexLock mu(Thread::Current(), state_lock_); in Accept() local

1234