Home
last modified time | relevance | path

Searched refs:mu (Results 1 – 25 of 83) 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.h214 std::ostream& operator<<(std::ostream& os, const Mutex& mu);
303 std::ostream& operator<<(std::ostream& os, const ReaderWriterMutex& mu);
422 std::ostream& operator<<(std::ostream& os, const MutatorMutex& mu);
484 MutexLock(Thread* self, Mutex& mu) ACQUIRE(mu) : self_(self), mu_(mu) { in MutexLock() argument
504 ReaderMutexLock(Thread* self, ReaderWriterMutex& mu) ACQUIRE(mu) : in ReaderMutexLock() argument
505 self_(self), mu_(mu) { in ReaderMutexLock()
526 WriterMutexLock(Thread* self, ReaderWriterMutex& mu) EXCLUSIVE_LOCK_FUNCTION(mu) : in WriterMutexLock() argument
527 self_(self), mu_(mu) { in WriterMutexLock()
Dtiming_logger.cc50 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/
Dlinear_alloc.cc27 MutexLock mu(self, lock_); in Realloc() local
32 MutexLock mu(self, lock_); in Alloc() local
37 MutexLock mu(Thread::Current(), lock_); in GetUsedMemory() local
42 MutexLock mu(Thread::Current(), lock_); in GetArenaPool() local
47 MutexLock mu(Thread::Current(), lock_); in Contains() local
Dclass_table.cc30 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() local
35 ReaderMutexLock mu(Thread::Current(), lock_); in Contains() local
46 ReaderMutexLock mu(Thread::Current(), lock_); in LookupByDescriptor() local
57 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() local
81 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() local
90 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() local
95 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() local
106 WriterMutexLock mu(Thread::Current(), lock_); in Insert() local
115 WriterMutexLock mu(Thread::Current(), lock_); in InsertWithHash() local
120 WriterMutexLock mu(Thread::Current(), lock_); in Remove() local
[all …]
Dthread_pool.cc100 MutexLock mu(self, task_queue_lock_); in AddTask() local
109 MutexLock mu(self, task_queue_lock_); in RemoveAllTasks() local
139 MutexLock mu(Thread::Current(), task_queue_lock_); in SetMaxActiveWorkers() local
147 MutexLock mu(self, task_queue_lock_); in ~ThreadPool() local
159 MutexLock mu(self, task_queue_lock_); in StartWorkers() local
167 MutexLock mu(self, task_queue_lock_); in StopWorkers() local
172 MutexLock mu(self, task_queue_lock_); in GetTask() local
204 MutexLock mu(self, task_queue_lock_); in TryGetTask() local
227 MutexLock mu(self, task_queue_lock_); in Wait() local
238 MutexLock mu(self, task_queue_lock_); in GetTaskCount() local
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
Djava_vm_ext.cc104 MutexLock mu(self, jni_on_load_lock_); in CheckOnLoadResult() local
127 MutexLock mu(self, jni_on_load_lock_); in SetResult() local
280 MutexLock mu(soa.Self(), *Locks::jni_libraries_lock_); in UnloadNativeLibraries() local
526 WriterMutexLock mu(self, globals_lock_); in AddGlobalRef() local
535 MutexLock mu(self, weak_globals_lock_); in AddWeakGlobalRef() local
547 WriterMutexLock mu(self, globals_lock_); in DeleteGlobalRef() local
558 MutexLock mu(self, weak_globals_lock_); in DeleteWeakGlobalRef() local
574 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in SetCheckJniEnabled() local
586 ReaderMutexLock mu(self, globals_lock_); in DumpForSigQuit() local
590 MutexLock mu(self, weak_globals_lock_); in DumpForSigQuit() local
[all …]
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
Dclass_table-inl.h26 ReaderMutexLock mu(Thread::Current(), lock_); in VisitRoots()
39 ReaderMutexLock mu(Thread::Current(), lock_); in VisitRoots()
52 ReaderMutexLock mu(Thread::Current(), lock_); in Visit()
Dthread_list.cc82 MutexLock mu(self, *Locks::thread_list_lock_); in ~ThreadList() local
118 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in DumpNativeStacks() local
168 MutexLock mu(self, *Locks::thread_list_lock_); in DumpUnattachedThreads() local
204 MutexLock mu(self, *Locks::logging_lock_); in Run() local
234 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in Dump() local
250 MutexLock mu(self, *Locks::thread_list_lock_); in AssertThreadsAreSuspended() local
297 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpoint() local
377 MutexLock mu(self, *Locks::thread_list_lock_); in RunCheckpointOnRunnableThreads() local
420 MutexLock mu(self, *Locks::thread_list_lock_); in FlipThreadRoots() local
446 ReaderMutexLock mu(self, *Locks::mutator_lock_); in FlipThreadRoots() local
[all …]
Dintern_table.cc43 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() local
48 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() local
53 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() local
62 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() local
91 MutexLock mu(self, *Locks::intern_table_lock_); in LookupWeak() local
96 MutexLock mu(self, *Locks::intern_table_lock_); in LookupStrong() local
107 MutexLock mu(self, *Locks::intern_table_lock_); in LookupStrong() local
120 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddNewTable() local
177 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddImagesStringsToTable() local
240 MutexLock mu(self, *Locks::intern_table_lock_); in BroadcastForNewInterns() local
[all …]
Dtransaction.cc41 MutexLock mu(Thread::Current(), log_lock_); in ~Transaction() local
63 MutexLock mu(Thread::Current(), log_lock_); in Abort() local
92 MutexLock mu(Thread::Current(), log_lock_); in IsAborted() local
97 MutexLock mu(Thread::Current(), log_lock_); in GetAbortMessage() local
104 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldBoolean() local
112 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldByte() local
120 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldChar() local
129 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteFieldShort() local
138 MutexLock mu(Thread::Current(), log_lock_); in RecordWriteField32() local
146 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.cc59 MutexLock mu(self, *Locks::reference_processor_lock_); in BroadcastForSlowPath() local
75 MutexLock mu(self, *Locks::reference_processor_lock_); in GetReferent() local
107 MutexLock mu(self, *Locks::reference_processor_lock_); in StartPreservingReferences() local
112 MutexLock mu(self, *Locks::reference_processor_lock_); in StopPreservingReferences() local
125 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local
176 MutexLock mu(self, *Locks::reference_processor_lock_); in ProcessReferences() local
245 ReaderMutexLock mu(self, *Locks::mutator_lock_); in EnqueueClearedReferences() local
265 MutexLock mu(self, *Locks::reference_processor_lock_); in MakeCircularListIfUnenqueued() local
/art/compiler/dex/
Dverification_results.cc42 WriterMutexLock mu(self, verified_methods_lock_); in ~VerificationResults() local
57 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod() local
78 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod() local
85 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass() local
92 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected() local
/art/runtime/jit/
Djit_code_cache.cc170 MutexLock mu(Thread::Current(), lock_); in ContainsMethod() local
264 MutexLock mu(self, lock_); in RemoveMethodsIn() local
300 MutexLock mu(self, lock_); in ClearGcRootsInInlineCaches() local
327 MutexLock mu(self, lock_); in CommitCodeInternal() local
359 MutexLock mu(self, lock_); in CommitCodeInternal() local
394 MutexLock mu(Thread::Current(), lock_); in CodeCacheSize() local
403 MutexLock mu(Thread::Current(), lock_); in DataCacheSize() local
412 MutexLock mu(self, lock_); in ClearData() local
422 MutexLock mu(self, lock_); in ReserveData() local
431 MutexLock mu(self, lock_); in ReserveData() 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.cc88 MutexLock mu(self, wait_lock_); in Run() local
108 MutexLock mu(self, wait_lock_); in Run() local
122 MutexLock mu(self, wait_lock_); in Run() local
154 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in NotifyJitActivity() local
238 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in FetchAndCacheResolvedClassesAndMethods() local
275 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in ProcessProfilingInfo() local
409 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in Start() local
477 MutexLock mu(self, *Locks::profiler_lock_); in ShuttingDown() local
482 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in IsStarted() local
513 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in NotifyDexUse() local
[all …]
/art/runtime/gc/space/
Dregion_space.cc84 MutexLock mu(Thread::Current(), region_lock_); in FromSpaceSize() local
96 MutexLock mu(Thread::Current(), region_lock_); in UnevacFromSpaceSize() local
108 MutexLock mu(Thread::Current(), region_lock_); in ToSpaceSize() local
154 MutexLock mu(Thread::Current(), region_lock_); in SetFromSpace() local
206 MutexLock mu(Thread::Current(), region_lock_); in ClearFromSpace() local
221 MutexLock mu(Thread::Current(), region_lock_); in AssertAllRegionLiveBytesZeroOrCleared() local
233 MutexLock mu(Thread::Current(), region_lock_); in LogFragmentationAllocFailure() local
271 MutexLock mu(Thread::Current(), region_lock_); in Clear() local
291 MutexLock mu(Thread::Current(), region_lock_); in FreeLarge() local
313 MutexLock mu(Thread::Current(), region_lock_); in DumpRegions() local
[all …]
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
161 MutexLock mu(Thread::Current(), block_lock_); in Walk() local
217 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetBytesAllocated() local
235 MutexLock mu(self, *Locks::runtime_shutdown_lock_); in GetObjectsAllocated() local
256 MutexLock mu(Thread::Current(), block_lock_); in AllocNewTlab() local
Ddlmalloc_space.cc133 MutexLock mu(self, lock_); in AllocWithGrowth() local
168 MutexLock mu(self, lock_); in Free() local
197 MutexLock mu(self, lock_); in FreeList() local
218 MutexLock mu(self, lock_); in FreeList() local
225 MutexLock mu(Thread::Current(), lock_); in Trim() local
236 MutexLock mu(Thread::Current(), lock_); in Walk() local
242 MutexLock mu(Thread::Current(), lock_); in GetFootprint() local
247 MutexLock mu(Thread::Current(), lock_); in GetFootprintLimit() local
252 MutexLock mu(Thread::Current(), lock_); in SetFootprintLimit() local
265 MutexLock mu(Thread::Current(), lock_); in GetBytesAllocated() local
[all …]
/art/runtime/jdwp/
Dobject_registry.cc90 MutexLock mu(soa.Self(), lock_); in InternalAdd() local
152 MutexLock mu(self, lock_); in Clear() local
172 MutexLock mu(self, lock_); in InternalGet() local
188 MutexLock mu(self, lock_); in GetJObject() local
197 MutexLock mu(self, lock_); in DisableCollection() local
205 MutexLock mu(self, lock_); in EnableCollection() local
235 MutexLock mu(self, lock_); in IsCollected() local
249 MutexLock mu(self, lock_); in DisposeObject() local
/art/runtime/lambda/
Dbox_table.cc83 /*Reader*/MutexLock mu(self, *Locks::lambda_table_lock_); in BoxLambda() local
130 MutexLock mu(self, *Locks::lambda_table_lock_); in BoxLambda() local
221 MutexLock mu(self, *Locks::lambda_table_lock_); in SweepWeakBoxedLambdas() local
264 MutexLock mu(self, *Locks::lambda_table_lock_); in DisallowNewWeakBoxedLambdas() local
272 MutexLock mu(self, *Locks::lambda_table_lock_); in AllowNewWeakBoxedLambdas() local
281 MutexLock mu(self, *Locks::lambda_table_lock_); in BroadcastForNewWeakBoxedLambdas() local
/art/compiler/dex/quick/
Ddex_file_to_method_inliner_map.cc43 ReaderMutexLock mu(self, lock_); in GetMethodInliner() local
58 WriterMutexLock mu(self, lock_); in GetMethodInliner() local

1234