/art/runtime/base/ |
D | mutex_test.cc | 32 mu.AssertNotHeld(Thread::Current()); in AssertDepth() 34 mu.AssertHeld(Thread::Current()); in AssertDepth() 42 mu.Lock(Thread::Current()); in TEST_F() 44 mu.Unlock(Thread::Current()); in TEST_F() 52 ASSERT_TRUE(mu.TryLock(Thread::Current())); in TryLockUnlockTest() 54 mu.Unlock(Thread::Current()); in TryLockUnlockTest() 66 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 68 mu.Lock(Thread::Current()); in RecursiveLockUnlockTest() 70 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() 72 mu.Unlock(Thread::Current()); in RecursiveLockUnlockTest() [all …]
|
/art/test/1337-gc-coverage/ |
D | gc_coverage.cc | 27 return Runtime::Current()->GetHeap()->PerformHomogeneousSpaceCompact() == gc::kSuccess ? in Java_Main_performHomogeneousSpaceCompact() 32 return Runtime::Current()->GetHeap()->SupportHomogeneousSpaceCompactAndCollectorTransitions() ? in Java_Main_supportHomogeneousSpaceCompact() 37 Runtime::Current()->GetHeap()->IncrementDisableMovingGC(Thread::Current()); in Java_Main_incrementDisableMovingGC() 41 Runtime::Current()->GetHeap()->DecrementDisableMovingGC(Thread::Current()); in Java_Main_decrementDisableMovingGC() 51 return Runtime::Current()->GetHeap()->SupportHomogeneousSpaceCompactAndCollectorTransitions() ? in Java_Main_supportCollectorTransition() 56 Runtime::Current()->GetHeap()->TransitionCollector(gc::kCollectorTypeSS); in Java_Main_transitionToSS() 60 Runtime::Current()->GetHeap()->TransitionCollector(gc::kCollectorTypeCMS); in Java_Main_transitionToCMS()
|
/art/test/597-deopt-new-string/ |
D | deopt.cc | 33 ScopedThreadSuspension sts(Thread::Current(), kWaitingForDeoptimization); in Java_Main_deoptimizeAll() 34 gc::ScopedGCCriticalSection gcs(Thread::Current(), in Java_Main_deoptimizeAll() 42 Runtime::Current()->GetInstrumentation()->EnableDeoptimization(); in Java_Main_deoptimizeAll() 45 Runtime::Current()->GetInstrumentation()->DeoptimizeEverything("test"); in Java_Main_deoptimizeAll() 52 ScopedThreadSuspension sts(Thread::Current(), kWaitingForDeoptimization); in Java_Main_undeoptimizeAll() 53 gc::ScopedGCCriticalSection gcs(Thread::Current(), in Java_Main_undeoptimizeAll() 58 Runtime::Current()->GetInstrumentation()->UndeoptimizeEverything("test"); in Java_Main_undeoptimizeAll()
|
/art/runtime/gc/ |
D | system_weak_test.cc | 76 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Sweep() 87 Thread* self = Thread::Current(); in Get() 97 Thread* self = Thread::Current(); in Set() 111 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesAllowOrBroadcast() 125 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesDisallow() 137 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 139 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 148 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F() 162 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 164 ScopedObjectAccess soa(Thread::Current()); in TEST_F() [all …]
|
D | heap_verification_test.cc | 49 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 50 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F() 74 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 78 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F() 93 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 97 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F() 105 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 106 Runtime* const runtime = Runtime::Current(); in TEST_F() 123 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 124 Runtime* const runtime = Runtime::Current(); in TEST_F() [all …]
|
D | system_weak.h | 52 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Allow() 54 new_weak_condition_.Broadcast(Thread::Current()); in Allow() 61 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Disallow() 67 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Broadcast() 68 new_weak_condition_.Broadcast(Thread::Current()); in Broadcast()
|
/art/test/667-jit-jni-stub/ |
D | jit_jni_stub_test.cc | 32 CHECK(Runtime::Current()->GetJit() != nullptr); in isNextJitGcFull() 33 jit::JitCodeCache* cache = Runtime::Current()->GetJit()->GetCodeCache(); in isNextJitGcFull() 42 ScopedObjectAccess soa(Thread::Current()); in Java_Main_callThrough() 51 CHECK(Runtime::Current()->GetJit() != nullptr); in Java_Main_jitGc() 52 jit::JitCodeCache* cache = Runtime::Current()->GetJit()->GetCodeCache(); in Java_Main_jitGc() 53 ScopedObjectAccess soa(Thread::Current()); in Java_Main_jitGc() 54 cache->GarbageCollectCache(Thread::Current()); in Java_Main_jitGc() 59 ScopedObjectAccess soa(Thread::Current()); in Java_Main_isNextJitGcFull()
|
/art/test/570-checker-osr/ |
D | osr.cc | 36 ScopedObjectAccess soa(Thread::Current()); in ProcessMethodWithName() 57 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_isInOsrCode() 69 Runtime::Current()->GetJit()->GetCodeCache()->LookupOsrMethodHeader(m); in Java_Main_isInOsrCode() 80 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_isInInterpreter() 91 Runtime::Current()->GetJit()->GetCodeCache()->LookupOsrMethodHeader(m); in Java_Main_isInInterpreter() 103 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasProfilingInfo() 111 ProfilingInfo::Create(Thread::Current(), m, /* retry_allocation */ true); in Java_Main_ensureHasProfilingInfo() 118 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasOsrCode() 126 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_ensureHasOsrCode() 131 jit->CompileMethod(m, Thread::Current(), /*baseline=*/ false, /*osr=*/ true); in Java_Main_ensureHasOsrCode()
|
/art/openjdkjvmti/ |
D | ti_dump.cc | 50 art::Thread* thread = art::Thread::Current(); in SigQuit() 52 event_handler->DispatchEvent<ArtJvmtiEvent::kDataDumpRequest>(art::Thread::Current()); in SigQuit() 62 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Register() 65 art::Runtime::Current()->GetRuntimeCallbacks()->AddRuntimeSigQuitCallback(&gDumpCallback); in Register() 69 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Unregister() 72 art::Runtime::Current()->GetRuntimeCallbacks()->RemoveRuntimeSigQuitCallback(&gDumpCallback); in Unregister() 76 art::Thread* self = art::Thread::Current(); in DumpInternalState()
|
D | deopt_manager.cc | 74 return !art::Runtime::Current()->IsJavaDebuggable() || in IsMethodBeingInspected() 102 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Setup() 105 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Setup() 110 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Shutdown() 113 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Shutdown() 161 art::Runtime::Current()->GetThreadList()->ForEach(func, &dtdc); in DumpDeoptInfo() 165 art::Thread* self = art::Thread::Current(); in FinishSetup() 168 art::Runtime* runtime = art::Runtime::Current(); in FinishSetup() 211 art::MutexLock lk(art::Thread::Current(), breakpoint_status_lock_); in MethodHasBreakpoints() 221 art::Thread* self = art::Thread::Current(); in RemoveDeoptimizeAllMethods() [all …]
|
/art/runtime/ |
D | runtime_callbacks.cc | 38 ReaderMutexLock mu(Thread::Current(), *this->callback_lock_); \ 52 WriterMutexLock mu(Thread::Current(), *callback_lock_); in AddDdmCallback() 57 WriterMutexLock mu(Thread::Current(), *callback_lock_); in RemoveDdmCallback() 68 WriterMutexLock mu(Thread::Current(), *callback_lock_); in AddDebuggerControlCallback() 73 WriterMutexLock mu(Thread::Current(), *callback_lock_); in RemoveDebuggerControlCallback() 99 WriterMutexLock mu(Thread::Current(), *callback_lock_); in AddMethodInspectionCallback() 104 WriterMutexLock mu(Thread::Current(), *callback_lock_); in RemoveMethodInspectionCallback() 138 WriterMutexLock mu(Thread::Current(), *callback_lock_); in AddThreadLifecycleCallback() 167 WriterMutexLock mu(Thread::Current(), *callback_lock_); in AddMonitorCallback() 172 WriterMutexLock mu(Thread::Current(), *callback_lock_); in RemoveMonitorCallback() [all …]
|
D | method_handles_test.cc | 52 ClassLinker* cl = Runtime::Current()->GetClassLinker(); in CreateVoidMethodType() 81 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 82 ClassLinker* cl = Runtime::Current()->GetClassLinker(); in TEST_F() 93 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 94 ClassLinker* cl = Runtime::Current()->GetClassLinker(); in TEST_F() 106 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 107 ClassLinker* cl = Runtime::Current()->GetClassLinker(); in TEST_F() 118 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 119 ClassLinker* cl = Runtime::Current()->GetClassLinker(); in TEST_F() 132 ScopedObjectAccess soa(Thread::Current()); in TEST_F() [all …]
|
D | read_barrier-inl.h | 42 Thread* const self = Thread::Current(); in Barrier() 82 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier() 113 Thread* const self = Thread::Current(); in BarrierForRoot() 120 Thread* self = Thread::Current(); in BarrierForRoot() 130 Thread* self = Thread::Current(); in BarrierForRoot() 133 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot() 161 Thread* self = Thread::Current(); in BarrierForRoot() 171 Thread* self = Thread::Current(); in BarrierForRoot() 174 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot() 204 if (!Thread::Current()->GetIsGcMarking()) { in IsMarked() [all …]
|
D | intern_table.cc | 45 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() 50 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() 55 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() 64 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() 122 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddNewTable() 128 Runtime* runtime = Runtime::Current(); in InsertStrong() 140 Runtime* runtime = Runtime::Current(); in InsertWeak() 153 Runtime* runtime = Runtime::Current(); in RemoveWeak() 162 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertStrongFromTransaction() 167 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertWeakFromTransaction() [all …]
|
D | class_table.cc | 26 Runtime* const runtime = Runtime::Current(); in ClassTable() 32 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() 37 ReaderMutexLock mu(Thread::Current(), lock_); in Contains() 49 ReaderMutexLock mu(Thread::Current(), lock_); in LookupByDescriptor() 61 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() 97 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() 106 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() 111 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedZygoteClasses() 120 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedNonZygoteClasses() 126 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() [all …]
|
D | signal_catcher.cc | 80 Thread* self = Thread::Current(); in SignalCatcher() 96 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag() 101 MutexLock mu(Thread::Current(), lock_); in ShouldHalt() 106 ScopedThreadStateChange tsc(Thread::Current(), kWaitingForSignalCatcherOutput); in Output() 117 Runtime* runtime = Runtime::Current(); in HandleSigQuit() 146 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in HandleSigUsr1() 164 Runtime::Current()->DumpLockHolders(LOG_STREAM(INFO)); in WaitForSignal() 174 Runtime* runtime = Runtime::Current(); in Run() 178 Thread* self = Thread::Current(); in Run()
|
/art/test/616-cha-unloading/ |
D | cha_unload.cc | 63 ReaderMutexLock mu(Thread::Current(), *Locks::mutator_lock_); in Java_Main_reuseArenaOfMethod() 64 ReaderMutexLock mu2(Thread::Current(), *Locks::classlinker_classes_lock_); in Java_Main_reuseArenaOfMethod() 66 if (Runtime::Current()->GetLinearAlloc()->Contains(ptr)) { in Java_Main_reuseArenaOfMethod() 72 Runtime::Current()->GetClassLinker()->VisitAllocators(&visitor); in Java_Main_reuseArenaOfMethod() 80 std::unique_ptr<LinearAlloc> alloc(Runtime::Current()->CreateLinearAlloc()); in Java_Main_reuseArenaOfMethod() 83 alloc->Alloc(Thread::Current(), 1); in Java_Main_reuseArenaOfMethod()
|
/art/test/common/ |
D | runtime_state.cc | 45 Runtime* runtime = Runtime::Current(); in GetJitIfEnabled() 73 return Runtime::Current()->IsVerificationSoftFail() ? JNI_TRUE : JNI_FALSE; in Java_Main_runtimeIsSoftFail() 80 return Runtime::Current()->GetHeap()->HasBootImageSpace(); in Java_Main_hasImage() 87 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled() 148 Thread* self = Thread::Current(); in Java_Main_isAotCompiled() 160 Runtime::Current()->GetClassLinker()->ShouldUseInterpreterEntrypoint(method, actual_code); in Java_Main_isAotCompiled() 185 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledEntrypoint() 191 Runtime::Current()->GetInstrumentation()->GetCodeForInvoke(method)); in Java_Main_hasJitCompiledEntrypoint() 202 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledCode() 215 } else if (!Runtime::Current()->GetRuntimeCallbacks()->IsMethodSafeToJit(method)) { in ForceJitCompiled() [all …]
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 70 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 74 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 95 Runtime::Current()->SetHiddenApiExemptions(exemptions_vec); in VMRuntime_setHiddenApiExemptions() 99 Runtime::Current()->SetHiddenApiEventLogSampleRate(rate); in VMRuntime_setHiddenApiAccessLogSamplingRate() 114 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 141 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 167 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 175 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 179 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit() 187 return Runtime::Current()->IsNativeDebuggable(); in VMRuntime_isNativeDebuggable() [all …]
|
D | dalvik_system_ZygoteHooks.cc | 116 Runtime* const runtime = Runtime::Current(); in CollectNonDebuggableClasses() 117 Thread* const self = Thread::Current(); in CollectNonDebuggableClasses() 127 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_); in CollectNonDebuggableClasses() 160 Runtime* const runtime = Runtime::Current(); in EnableDebugFeatures() 167 Thread::Current()->GetJniEnv()->SetCheckJniEnabled(true); in EnableDebugFeatures() 196 Runtime::Current()->DoAndMaybeSwitchInterpreter([=]() { in EnableDebugFeatures() 242 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePreFork() 252 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePostZygoteFork() 260 Runtime::Current()->SetSystemServer(true); in ZygoteHooks_nativePostForkSystemServer() 265 if (Runtime::Current()->GetJit() != nullptr) { in ZygoteHooks_nativePostForkSystemServer() [all …]
|
/art/runtime/gc/space/ |
D | bump_pointer_space.cc | 88 MutexLock mu(Thread::Current(), block_lock_); in Clear() 106 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers() 112 Thread* self = Thread::Current(); in RevokeAllThreadLocalBuffers() 116 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in RevokeAllThreadLocalBuffers() 125 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked() 132 Thread* self = Thread::Current(); in AssertAllThreadLocalBuffersAreRevoked() 136 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in AssertAllThreadLocalBuffersAreRevoked() 173 Thread* self = Thread::Current(); in GetBytesAllocated() 176 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in GetBytesAllocated() 177 MutexLock mu3(Thread::Current(), block_lock_); in GetBytesAllocated() [all …]
|
/art/test/596-app-images/ |
D | app_images.cc | 38 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageLoaded() 39 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageLoaded() 52 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageContains() 54 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageContains() 69 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkInitialized()
|
/art/runtime/jit/ |
D | jit.cc | 163 MutexLock mu(Thread::Current(), lock_); in DumpInfo() 201 !Runtime::Current()->GetInstrumentation()->AreExitStubsInstalled()); in Create() 211 jit->DumpTypeInfoForLoadedTypes(Runtime::Current()->GetClassLinker()); in Create() 250 DCHECK(Runtime::Current()->UseJitCompilation()); in CompileMethod() 253 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in CompileMethod() 263 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in CompileMethod() 305 Thread* self = Thread::Current(); in DeleteThreadPool() 306 DCHECK(Runtime::Current()->IsShuttingDown(self)); in DeleteThreadPool() 353 Runtime::Current()->DumpDeoptimizations(LOG_STREAM(INFO)); in ~Jit() 367 if (!Runtime::Current()->UseJitCompilation()) { in NewTypeLoadedIfUsingJit() [all …]
|
/art/test/708-jit-cache-churn/ |
D | jit.cc | 36 if (!Runtime::Current()->UseJitCompilation()) { in Java_JitCacheChurnTest_removeJitCompiledMethod() 40 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_JitCacheChurnTest_removeJitCompiledMethod() 41 jit->WaitForCompilationToFinish(Thread::Current()); in Java_JitCacheChurnTest_removeJitCompiledMethod() 49 ScopedThreadSuspension selfSuspension(Thread::Current(), art::ThreadState::kNative); in Java_JitCacheChurnTest_removeJitCompiledMethod()
|
/art/test/596-monitor-inflation/ |
D | monitor_inflation.cc | 27 Runtime::Current()->GetHeap()->Trim(Thread::Current()); in Java_Main_trim() 31 return Runtime::Current()->GetMonitorList()->Size(); in Java_Main_monitorListSize()
|