/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/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() 124 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesDisallow() 136 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 138 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 147 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F() 161 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 163 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 …]
|
/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/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()
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 72 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 76 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 91 Runtime::Current()->SetHiddenApiExemptions(exemptions_vec); in VMRuntime_setHiddenApiExemptions() 95 Runtime::Current()->SetHiddenApiEventLogSampleRate(rate); in VMRuntime_setHiddenApiAccessLogSamplingRate() 110 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 137 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 164 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 172 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 176 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit() 180 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() 164 Runtime* const runtime = Runtime::Current(); in EnableDebugFeatures() 171 Thread::Current()->GetJniEnv()->SetCheckJniEnabled(true); in EnableDebugFeatures() 200 Runtime::Current()->DoAndMaybeSwitchInterpreter([=]() { in EnableDebugFeatures() 256 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePreFork() 266 Runtime::Current()->PostZygoteFork(); in ZygoteHooks_nativePostZygoteFork() 273 Runtime::Current()->ReloadAllFlags(__FUNCTION__); in ZygoteHooks_nativePostForkSystemServer() 277 Runtime::Current()->SetAsSystemServer(); in ZygoteHooks_nativePostForkSystemServer() [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 | class_table.cc | 26 Runtime* const runtime = Runtime::Current(); in ClassTable() 32 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() 39 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() 75 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() 84 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() 89 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedZygoteClasses() 98 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedNonZygoteClasses() 104 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() 119 WriterMutexLock mu(Thread::Current(), lock_); in InsertWithHash() 125 WriterMutexLock mu(Thread::Current(), lock_); in Remove() [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 | signal_catcher.cc | 81 Thread* self = Thread::Current(); in SignalCatcher() 97 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag() 102 MutexLock mu(Thread::Current(), lock_); in ShouldHalt() 107 ScopedThreadStateChange tsc(Thread::Current(), kWaitingForSignalCatcherOutput); in Output() 118 Runtime* runtime = Runtime::Current(); in HandleSigQuit() 147 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in HandleSigUsr1() 165 Runtime::Current()->DumpLockHolders(LOG_STREAM(INFO)); in WaitForSignal() 175 Runtime* runtime = Runtime::Current(); in Run() 179 Thread* self = Thread::Current(); in Run()
|
/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() 104 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasProfilingInfo() 112 ProfilingInfo::Create(Thread::Current(), m); in Java_Main_ensureHasProfilingInfo() 119 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasOsrCode() 127 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_ensureHasOsrCode() 133 m, Thread::Current(), CompilationKind::kOsr, /*prejit=*/ false); in Java_Main_ensureHasOsrCode()
|
/art/runtime/jni/ |
D | jni_internal.h | 86 return Runtime::Current()->GetJniIdManager()->DecodeFieldId(fid); in DecodeArtField() 95 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtField() 96 return Runtime::Current()->GetJniIdManager()->EncodeFieldId(field); in EncodeArtField() 105 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtField() 106 return Runtime::Current()->GetJniIdManager()->EncodeFieldId(field); in EncodeArtField() 116 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtMethod() 117 return Runtime::Current()->GetJniIdManager()->EncodeMethodId(art_method); in EncodeArtMethod() 127 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtMethod() 128 return Runtime::Current()->GetJniIdManager()->EncodeMethodId(art_method); in EncodeArtMethod() 138 return Runtime::Current()->GetJniIdManager()->DecodeMethodId(method_id); in DecodeArtMethod()
|
/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/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/2011-stack-walk-concurrent-instrument/ |
D | stack_walk_concurrent.cc | 35 ScopedThreadSuspension sts(Thread::Current(), ThreadState::kWaitingForDeoptimization); in WaitForInstrument() 72 ScopedObjectAccess soa(Thread::Current()); in Java_Main_doSelfStackWalk() 73 SelfStackWalkVisitor sswv(Thread::Current()); in Java_Main_doSelfStackWalk() 83 Thread* other = Runtime::Current()->GetThreadList()->SuspendThreadByPeer( in Java_Main_waitAndDeopt() 88 Runtime::Current()->GetInstrumentation()->InstrumentThreadStack(other); in Java_Main_waitAndDeopt() 89 MutexLock mu(Thread::Current(), *Locks::thread_suspend_count_lock_); in Java_Main_waitAndDeopt() 90 …bool updated = other->ModifySuspendCount(Thread::Current(), -1, nullptr, SuspendReason::kInternal); in Java_Main_waitAndDeopt()
|
/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/common/ |
D | runtime_state.cc | 49 Runtime* runtime = Runtime::Current(); in GetJitIfEnabled() 95 return Runtime::Current()->IsVerificationSoftFail() ? JNI_TRUE : JNI_FALSE; in Java_Main_runtimeIsSoftFail() 102 return Runtime::Current()->GetHeap()->HasBootImageSpace(); in Java_Main_hasImage() 109 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled() 166 Thread* self = Thread::Current(); in Java_Main_isAotCompiled() 178 Runtime::Current()->GetClassLinker()->ShouldUseInterpreterEntrypoint(method, actual_code) || in Java_Main_isAotCompiled() 204 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledEntrypoint() 210 Runtime::Current()->GetInstrumentation()->GetCodeForInvoke(method)); in Java_Main_hasJitCompiledEntrypoint() 221 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledCode() 233 if (!Runtime::Current()->GetRuntimeCallbacks()->IsMethodSafeToJit(method)) { in ForceJitCompiled() [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()
|
/art/runtime/jit/ |
D | jit.cc | 204 MutexLock mu(Thread::Current(), lock_); in DumpInfo() 246 !Runtime::Current()->GetInstrumentation()->AreExitStubsInstalled()); in Create() 257 for (const std::string& option : Runtime::Current()->GetCompilerOptions()) { in Create() 265 jit->DumpTypeInfoForLoadedTypes(Runtime::Current()->GetClassLinker()); in Create() 299 DCHECK(Runtime::Current()->UseJitCompilation()); in CompileMethod() 302 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in CompileMethod() 321 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in CompileMethod() 371 Thread* self = Thread::Current(); in DeleteThreadPool() 423 Runtime::Current()->DumpDeoptimizations(LOG_STREAM(INFO)); in ~Jit() 437 if (!Runtime::Current()->UseJitCompilation()) { in NewTypeLoadedIfUsingJit() [all …]
|