/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/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/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/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/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, /* retry_allocation */ true); 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(), /*baseline=*/ false, /*osr=*/ true, /*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/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 | 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()
|
D | class_table.cc | 26 Runtime* const runtime = Runtime::Current(); in ClassTable() 32 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() 41 ReaderMutexLock mu(Thread::Current(), lock_); in LookupByDescriptor() 55 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() 91 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() 100 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() 105 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedZygoteClasses() 114 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedNonZygoteClasses() 120 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() 132 WriterMutexLock mu(Thread::Current(), lock_); in TryInsert() [all …]
|
/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/native/ |
D | dalvik_system_VMRuntime.cc | 72 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 76 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 97 Runtime::Current()->SetHiddenApiExemptions(exemptions_vec); in VMRuntime_setHiddenApiExemptions() 101 Runtime::Current()->SetHiddenApiEventLogSampleRate(rate); in VMRuntime_setHiddenApiAccessLogSamplingRate() 116 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 143 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 170 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 178 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 182 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit() 186 return Runtime::Current()->IsNativeDebuggable(); in VMRuntime_isNativeDebuggable() [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/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() 170 Thread* self = Thread::Current(); in Java_Main_isAotCompiled() 182 Runtime::Current()->GetClassLinker()->ShouldUseInterpreterEntrypoint(method, actual_code) || in Java_Main_isAotCompiled() 208 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledEntrypoint() 214 Runtime::Current()->GetInstrumentation()->GetCodeForInvoke(method)); in Java_Main_hasJitCompiledEntrypoint() 225 Thread* self = Thread::Current(); in Java_Main_hasJitCompiledCode() 238 } else if (!Runtime::Current()->GetRuntimeCallbacks()->IsMethodSafeToJit(method)) { in ForceJitCompiled() [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/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 | profile_saver.cc | 115 Thread* self = Thread::Current(); in NotifyStartupCompleted() 125 Thread* self = Thread::Current(); in Run() 139 while (!Runtime::Current()->GetStartupCompleted()) { in Run() 150 Runtime::Current()->NotifyStartupCompleted(); in Run() 219 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in NotifyJitActivity() 229 period_condition_.Signal(Thread::Current()); in WakeUpSaver() 239 MutexLock wait_mutex(Thread::Current(), wait_lock_); in NotifyJitActivityInternal() 330 Thread* const self = Thread::Current(); in SampleClassesAndExecutedMethods() 331 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in SampleClassesAndExecutedMethods() 413 Thread* const self = Thread::Current(); in FetchAndCacheResolvedClassesAndMethods() [all …]
|