/art/runtime/base/ |
D | locks.cc | 106 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 …]
|
D | mem_map_arena_pool.cc | 100 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()
|
D | locks.h | 183 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);
|
D | mem_map_arena_pool.h | 42 mutable std::mutex lock_;
|
D | mutex.cc | 137 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/ |
D | tracking_free.cc | 39 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/ |
D | native_loader.cpp | 50 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/ |
D | malloc_arena_pool.cc | 101 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()
|
D | logging.cc | 99 static std::mutex* logging_lock_ = new std::mutex(); in InitLogging() 100 std::lock_guard<std::mutex> guard(*logging_lock_); in InitLogging()
|
D | malloc_arena_pool.h | 41 mutable std::mutex lock_;
|
D | mem_map.cc | 91 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 …]
|
D | mem_map.h | 316 static std::mutex* GetMemMapsLock() RETURN_CAPABILITY(mem_maps_lock_) { in GetMemMapsLock() 411 static std::mutex* mem_maps_lock_;
|
/art/tools/jvmti-agents/chain-agents/ |
D | chainagents.cc | 44 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/ |
D | forceredefine.cc | 53 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/ |
D | dex_file_supp.cc | 59 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/ |
D | tracking.cc | 84 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/ |
D | classes.cc | 279 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/ |
D | ti_monitor.cc | 139 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_;
|
D | deopt_manager.cc | 130 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/ |
D | ti_alloc_sample.cc | 324 static std::mutex mutex; in logVMObjectAlloc() local 325 std::lock_guard<std::mutex> lg(mutex); in logVMObjectAlloc()
|
/art/test/924-threads/ |
D | threads.cc | 186 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/ |
D | palette_fake.cc | 33 static std::mutex g_tid_priority_map_mutex;
|
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 120 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()
|
D | dt_fd_forward.h | 144 std::mutex state_mutex_;
|
/art/openjdkjvm/ |
D | OpenjdkJvm.cc | 131 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()
|