Home
last modified time | relevance | path

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

12

/art/runtime/base/
Dlocks.cc106 explicit ScopedExpectedMutexesOnWeakRefAccessLock(const BaseMutex* mutex) : mutex_(mutex) { in ScopedExpectedMutexesOnWeakRefAccessLock() argument
109 mutex); in ScopedExpectedMutexesOnWeakRefAccessLock()
368 void Locks::AddToExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock) { in AddToExpectedMutexesOnWeakRefAccess() argument
370 ScopedExpectedMutexesOnWeakRefAccessLock mu(mutex); in AddToExpectedMutexesOnWeakRefAccess()
371 mutex->SetShouldRespondToEmptyCheckpointRequest(true); in AddToExpectedMutexesOnWeakRefAccess()
372 expected_mutexes_on_weak_ref_access_.push_back(mutex); in AddToExpectedMutexesOnWeakRefAccess()
374 mutex->SetShouldRespondToEmptyCheckpointRequest(true); in AddToExpectedMutexesOnWeakRefAccess()
375 expected_mutexes_on_weak_ref_access_.push_back(mutex); in AddToExpectedMutexesOnWeakRefAccess()
379 void Locks::RemoveFromExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock) { in RemoveFromExpectedMutexesOnWeakRefAccess() argument
381 ScopedExpectedMutexesOnWeakRefAccessLock mu(mutex); in RemoveFromExpectedMutexesOnWeakRefAccess()
[all …]
Dmem_map_arena_pool.cc100 std::lock_guard<std::mutex> lock(lock_); in LockReclaimMemory()
107 std::lock_guard<std::mutex> lock(lock_); in AllocArena()
122 std::lock_guard<std::mutex> lock(lock_); in TrimMaps()
130 std::lock_guard<std::mutex> lock(lock_); in GetBytesAllocated()
159 std::lock_guard<std::mutex> lock(lock_); in FreeArenaChain()
Dlocks.h183 static void AddToExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock = true);
185 static void RemoveFromExpectedMutexesOnWeakRefAccess(BaseMutex* mutex, bool need_lock = true);
187 static bool IsExpectedOnWeakRefAccess(BaseMutex* mutex);
Dmem_map_arena_pool.h42 mutable std::mutex lock_;
Dmutex.cc137 explicit ScopedAllMutexesLock(const BaseMutex* mutex) : mutex_(mutex) { in ScopedAllMutexesLock() argument
139 !gAllMutexData->all_mutexes_guard.CompareAndSetWeakAcquire(nullptr, mutex); in ScopedAllMutexesLock()
157 ScopedContentionRecorder(BaseMutex* mutex, uint64_t blocked_tid, uint64_t owner_tid) in ScopedContentionRecorder() argument
158 : mutex_(kLogLockContentions ? mutex : nullptr), in ScopedContentionRecorder()
164 mutex->GetName(), owner_tid); in ScopedContentionRecorder()
217 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
218 if (mutex->HasEverContended()) { in DumpAll()
219 mutex->Dump(os); in DumpAll()
224 for (const BaseMutex* mutex : *all_mutexes) { in DumpAll()
225 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/libnativeloader/
Dnative_loader.cpp50 std::mutex g_namespaces_mutex;
78 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in InitializeNativeLoader()
85 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in ResetNativeLoader()
94 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in CreateClassLoaderNamespace()
134 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in OpenNativeLibrary()
240 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in FindNamespaceByClassLoader()
249 std::lock_guard<std::mutex> guard(g_namespaces_mutex); in FindNativeLoaderNamespaceByClassLoader()
/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;
158 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in ContainedWithinExistingMap()
285 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in SetDebugName()
633 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in Invalidate()
644 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in swap()
692 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in MemMap()
763 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in RemapAtEnd()
805 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in ReleaseReservedMemory()
876 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in CheckNoGaps()
895 std::lock_guard<std::mutex> mu(*mem_maps_lock_); in DumpMaps()
[all …]
Dmem_map.h316 static std::mutex* GetMemMapsLock() RETURN_CAPABILITY(mem_maps_lock_) { in GetMemMapsLock()
411 static std::mutex* mem_maps_lock_;
/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/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc53 std::mutex mutex; member
150 std::lock_guard<std::mutex> mu(ai->mutex); in CbClassFileLoadHook()
223 std::lock_guard<std::mutex> mu(ai->mutex); in AgentMain()
/art/libdexfile/external/
Ddex_file_supp.cc59 static std::mutex load_mutex; in FOR_ALL_DLFUNCS()
61 std::lock_guard<std::mutex> lock(load_mutex); in FOR_ALL_DLFUNCS()
/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/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.cc130 DumpThreadDeoptCount(std::ostream& stream, std::mutex& mu) in DumpDeoptInfo()
134 std::lock_guard<std::mutex> lg(mu_); in DumpDeoptInfo()
153 std::mutex& mu_; in DumpDeoptInfo()
156 std::mutex mu; in DumpDeoptInfo()
/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/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/libartpalette/system/
Dpalette_fake.cc33 static std::mutex g_tid_priority_map_mutex;
/art/dt_fd_forward/
Ddt_fd_forward.cc120 std::lock_guard<std::mutex> lk(state_mutex_); in SetupListen()
136 std::lock_guard<std::mutex> lk(state_mutex_); in StopListening()
204 std::lock_guard<std::mutex> lk(state_mutex_); in ReadFully()
279 std::lock_guard<std::mutex> lk(state_mutex_); in WriteFully()
364 std::unique_lock<std::mutex> lk(state_mutex_); in Accept()
441 std::lock_guard<std::mutex> lk(state_mutex_); in Close()
Ddt_fd_forward.h144 std::mutex state_mutex_;
/art/openjdkjvm/
DOpenjdkJvm.cc131 pthread_mutex_t* mutex = in JVM_RawMonitorCreate() local
133 CHECK(mutex != nullptr); in JVM_RawMonitorCreate()
134 CHECK_PTHREAD_CALL(pthread_mutex_init, (mutex, nullptr), "JVM_RawMonitorCreate"); in JVM_RawMonitorCreate()
135 return mutex; in JVM_RawMonitorCreate()

12