Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 47) sorted by relevance

12

/art/runtime/base/
Dlocks.cc107 explicit ScopedExpectedMutexesOnWeakRefAccessLock(const BaseMutex* mutex) : mutex_(mutex) { in ScopedExpectedMutexesOnWeakRefAccessLock() argument
110 mutex); in ScopedExpectedMutexesOnWeakRefAccessLock()
373 void Locks::AddToExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock) { in AddToExpectedMutexesOnWeakRefAccess() argument
375 ScopedExpectedMutexesOnWeakRefAccessLock mu(mutex); in AddToExpectedMutexesOnWeakRefAccess()
376 mutex->SetShouldRespondToEmptyCheckpointRequest(true); in AddToExpectedMutexesOnWeakRefAccess()
377 expected_mutexes_on_weak_ref_access_.push_back(mutex); in AddToExpectedMutexesOnWeakRefAccess()
379 mutex->SetShouldRespondToEmptyCheckpointRequest(true); in AddToExpectedMutexesOnWeakRefAccess()
380 expected_mutexes_on_weak_ref_access_.push_back(mutex); in AddToExpectedMutexesOnWeakRefAccess()
384 void Locks::RemoveFromExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock) { in RemoveFromExpectedMutexesOnWeakRefAccess() argument
386 ScopedExpectedMutexesOnWeakRefAccessLock mu(mutex); in RemoveFromExpectedMutexesOnWeakRefAccess()
[all …]
Dmem_map_arena_pool.cc112 std::lock_guard<std::mutex> lock(lock_); in LockReclaimMemory()
119 std::lock_guard<std::mutex> lock(lock_); in AllocArena()
134 std::lock_guard<std::mutex> lock(lock_); in TrimMaps()
142 std::lock_guard<std::mutex> lock(lock_); in GetBytesAllocated()
171 std::lock_guard<std::mutex> lock(lock_); in FreeArenaChain()
Dlocks.h182 static void AddToExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock = true);
184 static void RemoveFromExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock = true);
186 static bool IsExpectedOnWeakRefAccess(BaseMutex* mutex);
Dmem_map_arena_pool.h42 mutable std::mutex lock_;
Dmutex.cc152 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) { in ScopedAllMutexesLock() argument
154 !gAllMutexData->all_mutexes_guard.CompareAndSetWeakAcquire(nullptr, mutex); in ScopedAllMutexesLock()
172 ScopedContentionRecorder(BaseMutex* mutex, uint64_t blocked_tid, uint64_t owner_tid) in ScopedContentionRecorder() argument
173 : mutex_(kLogLockContentions ? mutex : nullptr), in ScopedContentionRecorder()
179 mutex->GetName(), owner_tid); in ScopedContentionRecorder()
232 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
233 if (mutex->HasEverContended()) { in DumpAll()
234 mutex->Dump(os); in DumpAll()
239 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
240 if (!mutex->HasEverContended()) { in DumpAll()
[all …]
/art/test/905-object-free/
Dtracking_free.cc39 std::mutex ct1_mutex;
41 std::mutex ct2_mutex;
47 std::lock_guard<std::mutex> mu(ct1_mutex); in ObjectFree1()
53 std::lock_guard<std::mutex> mu(ct2_mutex); in ObjectFree2()
94 std::lock_guard<std::mutex> mu((index == 0) ? ct1_mutex : ct2_mutex); in Java_art_Test905_getCollectedTags()
/art/libartbase/base/
Dmalloc_arena_pool.cc101 std::lock_guard<std::mutex> lock(lock_); in LockReclaimMemory()
108 std::lock_guard<std::mutex> lock(lock_); in AllocArena()
127 std::lock_guard<std::mutex> lock(lock_); in GetBytesAllocated()
156 std::lock_guard<std::mutex> lock(lock_); in FreeArenaChain()
Dlogging.cc99 static std::mutex* logging_lock_ = new std::mutex(); in InitLogging()
100 std::lock_guard<std::mutex> guard(*logging_lock_); in InitLogging()
Dmalloc_arena_pool.h41 mutable std::mutex lock_;
Dmem_map.cc91 std::mutex* MemMap::mem_maps_lock_ = nullptr;
161 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in ContainedWithinExistingMap()
288 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in SetDebugName()
667 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in Invalidate()
679 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in swap()
727 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in MemMap()
798 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in RemapAtEnd()
840 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in ReleaseReservedMemory()
900 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in CheckNoGaps()
919 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in DumpMaps()
[all …]
/art/libdexfile/external/
Ddex_file_supp.cc51 static std::mutex load_mutex; in FOR_EACH_ADEX_FILE_SYMBOL()
53 std::lock_guard<std::mutex> lock(load_mutex); in FOR_EACH_ADEX_FILE_SYMBOL()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc51 std::mutex mutex; member
148 std::lock_guard<std::mutex> mu(ai->mutex); in CbClassFileLoadHook()
221 std::lock_guard<std::mutex> mu(ai->mutex); in AgentMain()
/art/libnativeloader/
Dnative_loader.cpp76 std::mutex g_namespaces_mutex;
162 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in TryLoadNativeloaderExtraLib()
211 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in InitializeNativeLoader()
218 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in ResetNativeLoader()
247 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in CreateClassLoaderNamespace()
392 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in OpenNativeLibrary()
536 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in FindNamespaceByClassLoader()
545 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in FindNativeLoaderNamespaceByClassLoader()
/art/tools/jvmti-agents/chain-agents/
Dchainagents.cc44 static std::mutex unload_mutex;
102 std::lock_guard<std::mutex> mu(unload_mutex); in AgentStart()
128 std::lock_guard<std::mutex> lk(unload_mutex); in Agent_OnUnload()
/art/test/904-object-allocation/
Dtracking.cc84 static std::mutex gEventsMutex;
94 std::lock_guard<std::mutex> guard(gEventsMutex); in ObjectAllocated()
123 std::lock_guard<std::mutex> guard(gEventsMutex); in Java_art_Test904_getTrackingEventMessages()
/art/test/912-classes/
Dclasses.cc279 static std::mutex gEventsMutex;
284 std::lock_guard<std::mutex> guard(gEventsMutex); in Java_art_Test912_getClassLoadMessages()
313 std::lock_guard<std::mutex> guard(gEventsMutex); in ClassLoadCallback()
336 std::lock_guard<std::mutex> guard(gEventsMutex); in ClassPrepareCallback()
441 std::unique_lock<std::mutex> lk(mutex_); in AgentThreadTest()
463 std::unique_lock<std::mutex> lk(mutex_); in ClassLoadCallback()
481 std::unique_lock<std::mutex> lk(mutex_); in ClassPrepareCallback()
558 static std::mutex mutex_;
571 std::mutex ClassLoadPrepareEquality::mutex_;
/art/dexopt_chroot_setup/
Ddexopt_chroot_setup.h50 std::mutex mu_;
/art/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc324 static std::mutex mutex; in logVMObjectAlloc() local
325 std::lock_guard<std::mutex> lg(mutex); in logVMObjectAlloc()
/art/openjdkjvmti/
Dti_monitor.cc139 auto wait_without_timeout = [&](std::unique_lock<std::mutex>& lk) { in Wait()
146 auto wait_with_timeout = [&](std::unique_lock<std::mutex>& lk) { in Wait()
182 std::unique_lock<std::mutex> lk(mutex_, std::adopt_lock); in Wait()
214 std::mutex mutex_;
Ddeopt_manager.cc111 DumpThreadDeoptCount(std::ostream& stream, std::mutex& mu) in DumpDeoptInfo()
115 std::lock_guard<std::mutex> lg(mu_); in DumpDeoptInfo()
134 std::mutex& mu_; in DumpDeoptInfo()
137 std::mutex mu; in DumpDeoptInfo()
/art/test/924-threads/
Dthreads.cc186 static std::mutex gEventsMutex;
195 std::lock_guard<std::mutex> guard(gEventsMutex); in ThreadEvent()
264 std::lock_guard<std::mutex> guard(gEventsMutex); in Java_art_Test924_getThreadEventMessages()
/art/dt_fd_forward/
Ddt_fd_forward.cc122 std::lock_guard<std::mutex> lk(state_mutex_); in SetupListen()
138 std::lock_guard<std::mutex> lk(state_mutex_); in StopListening()
206 std::lock_guard<std::mutex> lk(state_mutex_); in ReadFully()
281 std::lock_guard<std::mutex> lk(state_mutex_); in WriteFully()
371 std::unique_lock<std::mutex> lk(state_mutex_); in Accept()
450 std::lock_guard<std::mutex> lk(state_mutex_); in Close()
Ddt_fd_forward.h144 std::mutex state_mutex_;
/art/runtime/
Dexec_utils.cc148 std::mutex m; in WaitChildWithTimeoutFallback()
151 std::unique_lock<std::mutex> lock(m); in WaitChildWithTimeoutFallback()
161 std::unique_lock<std::mutex> lock(m); in WaitChildWithTimeoutFallback()
/art/openjdkjvm/
DOpenjdkJvm.cc134 pthread_mutex_t* mutex = in JVM_RawMonitorCreate() local
136 CHECK(mutex != nullptr); in JVM_RawMonitorCreate()
137 CHECK_PTHREAD_CALL(pthread_mutex_init, (mutex, nullptr), "JVM_RawMonitorCreate"); in JVM_RawMonitorCreate()
138 return mutex; in JVM_RawMonitorCreate()

12