/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 | 31 ScopedThreadSuspension sts(Thread::Current(), kWaitingForDeoptimization); in Java_Main_deoptimizeAll() 32 gc::ScopedGCCriticalSection gcs(Thread::Current(), in Java_Main_deoptimizeAll() 40 Runtime::Current()->GetInstrumentation()->EnableDeoptimization(); in Java_Main_deoptimizeAll() 43 Runtime::Current()->GetInstrumentation()->DeoptimizeEverything("test"); in Java_Main_deoptimizeAll() 50 ScopedThreadSuspension sts(Thread::Current(), kWaitingForDeoptimization); in Java_Main_undeoptimizeAll() 51 gc::ScopedGCCriticalSection gcs(Thread::Current(), in Java_Main_undeoptimizeAll() 56 Runtime::Current()->GetInstrumentation()->UndeoptimizeEverything("test"); in Java_Main_undeoptimizeAll()
|
/art/runtime/gc/ |
D | system_weak_test.cc | 75 MutexLock mu(Thread::Current(), allow_disallow_lock_); in Sweep() 86 Thread* self = Thread::Current(); in Get() 96 Thread* self = Thread::Current(); in Set() 110 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesAllowOrBroadcast() 122 CollectorType type = Runtime::Current()->GetHeap()->CurrentCollectorType(); in CollectorDoesDisallow() 134 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 136 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 145 Runtime::Current()->GetHeap()->CollectGarbage(false); in TEST_F() 159 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F() 161 ScopedObjectAccess soa(Thread::Current()); in TEST_F() [all …]
|
D | heap_test.cc | 33 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F() 45 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 62 Runtime::Current()->GetHeap()->CollectGarbage(false); in TEST_F() 76 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references */ false); in TEST_F() 77 Runtime::Current()->SetDumpGCPerformanceOnShutdown(true); in TEST_F() 89 Runtime::Current()->GetHeap()->PreZygoteFork(); in TEST_F()
|
D | heap_verification_test.cc | 38 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in AllocObjectArray() 47 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 48 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F() 67 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 71 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F() 84 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 85 Runtime* const runtime = Runtime::Current(); in TEST_F() 106 ScopedObjectAccess soa(Thread::Current()); in TEST_F() 107 Runtime* const runtime = Runtime::Current(); in TEST_F()
|
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/570-checker-osr/ |
D | osr.cc | 43 Runtime::Current()->GetJit()->GetCodeCache()->LookupOsrMethodHeader(m); in VisitFrame() 62 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_isInOsrCode() 69 ScopedObjectAccess soa(Thread::Current()); in Java_Main_isInOsrCode() 78 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_isInInterpreter() 84 ScopedObjectAccess soa(Thread::Current()); in Java_Main_isInInterpreter() 102 ProfilingInfo::Create(Thread::Current(), m, /* retry_allocation */ true); in VisitFrame() 114 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasProfilingInfo() 119 ScopedObjectAccess soa(Thread::Current()); in Java_Main_ensureHasProfilingInfo() 135 jit::Jit* jit = Runtime::Current()->GetJit(); in VisitFrame() 141 jit->CompileMethod(m, Thread::Current(), /* osr */ true); in VisitFrame() [all …]
|
/art/runtime/ |
D | read_barrier-inl.h | 41 Thread* const self = Thread::Current(); in Barrier() 78 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier() 106 Thread* const self = Thread::Current(); in BarrierForRoot() 113 Thread* self = Thread::Current(); in BarrierForRoot() 123 Thread* self = Thread::Current(); in BarrierForRoot() 126 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot() 154 Thread* self = Thread::Current(); in BarrierForRoot() 164 Thread* self = Thread::Current(); in BarrierForRoot() 167 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) { in BarrierForRoot() 197 if (!Thread::Current()->GetIsGcMarking()) { in IsMarked() [all …]
|
D | intern_table.cc | 42 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in Size() 47 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in StrongSize() 52 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in WeakSize() 61 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in VisitRoots() 119 MutexLock mu(Thread::Current(), *Locks::intern_table_lock_); in AddNewTable() 125 Runtime* runtime = Runtime::Current(); in InsertStrong() 137 Runtime* runtime = Runtime::Current(); in InsertWeak() 150 Runtime* runtime = Runtime::Current(); in RemoveWeak() 159 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertStrongFromTransaction() 164 DCHECK(!Runtime::Current()->IsActiveTransaction()); in InsertWeakFromTransaction() [all …]
|
D | class_table.cc | 25 Runtime* const runtime = Runtime::Current(); in ClassTable() 31 WriterMutexLock mu(Thread::Current(), lock_); in FreezeSnapshot() 36 ReaderMutexLock mu(Thread::Current(), lock_); in Contains() 48 ReaderMutexLock mu(Thread::Current(), lock_); in LookupByDescriptor() 66 WriterMutexLock mu(Thread::Current(), lock_); in UpdateClass() 104 ReaderMutexLock mu(Thread::Current(), lock_); in NumZygoteClasses() 113 ReaderMutexLock mu(Thread::Current(), lock_); in NumNonZygoteClasses() 118 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedZygoteClasses() 127 ReaderMutexLock mu(Thread::Current(), lock_); in NumReferencedNonZygoteClasses() 133 ReaderMutexLock mu(Thread::Current(), lock_); in Lookup() [all …]
|
D | signal_catcher.cc | 78 Thread* self = Thread::Current(); in SignalCatcher() 94 MutexLock mu(Thread::Current(), lock_); in SetHaltFlag() 99 MutexLock mu(Thread::Current(), lock_); in ShouldHalt() 109 ScopedThreadStateChange tsc(Thread::Current(), kWaitingForSignalCatcherOutput); in Output() 130 Runtime* runtime = Runtime::Current(); in HandleSigQuit() 159 Runtime::Current()->GetHeap()->CollectGarbage(false); in HandleSigUsr1() 177 Runtime::Current()->DumpLockHolders(LOG_STREAM(INFO)); in WaitForSignal() 187 Runtime* runtime = Runtime::Current(); in Run() 191 Thread* self = Thread::Current(); in Run()
|
D | art_field.cc | 35 if (kIsDebugBuild && Runtime::Current()->IsAotCompiler() && in SetOffset() 36 Runtime::Current()->IsCompilingBootImage()) { in SetOffset() 48 return Runtime::Current()->GetClassLinker()->FindSystemClass(Thread::Current(), descriptor); in ProxyFindSystemClass() 56 return Runtime::Current()->GetClassLinker()->ResolveString(dex_file, in ResolveGetStringName()
|
/art/runtime/openjdkjvmti/ |
D | ti_dump.cc | 49 art::Thread* thread = art::Thread::Current(); in SigQuit() 61 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Register() 64 art::Runtime::Current()->GetRuntimeCallbacks()->AddRuntimeSigQuitCallback(&gDumpCallback); in Register() 68 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Unregister() 71 art::Runtime::Current()->GetRuntimeCallbacks()->RemoveRuntimeSigQuitCallback(&gDumpCallback); in Unregister()
|
D | ti_phase.cc | 51 return reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv()); in GetJniEnv() 55 art::ScopedObjectAccess soa(art::Thread::Current()); in GetCurrentJThread() 66 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative); in NextRuntimePhase() 75 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative); in NextRuntimePhase() 82 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative); in NextRuntimePhase() 138 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Register() 141 art::Runtime::Current()->GetRuntimeCallbacks()->AddRuntimePhaseCallback(&gPhaseCallback); in Register() 145 art::ScopedThreadStateChange stsc(art::Thread::Current(), in Unregister() 148 art::Runtime::Current()->GetRuntimeCallbacks()->RemoveRuntimePhaseCallback(&gPhaseCallback); in Unregister()
|
/art/runtime/jit/ |
D | profile_saver.cc | 74 Thread* self = Thread::Current(); in Run() 149 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in NotifyJitActivity() 159 period_condition_.Signal(Thread::Current()); in WakeUpSaver() 169 MutexLock wait_mutex(Thread::Current(), wait_lock_); in NotifyJitActivityInternal() 191 if (Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(klass) || in operator ()() 221 Thread* const self = Thread::Current(); in FetchAndCacheResolvedClassesAndMethods() 230 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); in FetchAndCacheResolvedClassesAndMethods() 266 new ProfileCompilationInfo(Runtime::Current()->GetArenaPool())); in FetchAndCacheResolvedClassesAndMethods() 287 MutexLock mu(Thread::Current(), *Locks::profiler_lock_); in ProcessProfilingInfo() 297 if (!force_save && ShuttingDown(Thread::Current())) { in ProcessProfilingInfo() [all …]
|
D | jit.cc | 125 return Runtime::Current()->InJankPerceptibleProcessState() in ShouldUsePriorityThreadWeight() 126 && Thread::Current()->IsJitSensitiveThread(); in ShouldUsePriorityThreadWeight() 132 MutexLock mu(Thread::Current(), lock_); in DumpInfo() 189 jit->DumpTypeInfoForLoadedTypes(Runtime::Current()->GetClassLinker()); in Create() 238 << Runtime::Current()->GetInstrumentation()->InterpretOnly(); in LoadCompiler() 250 DCHECK(Runtime::Current()->UseJitCompilation()); in CompileMethod() 260 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in CompileMethod() 308 Thread* self = Thread::Current(); in DeleteThreadPool() 309 DCHECK(Runtime::Current()->IsShuttingDown(self)); in DeleteThreadPool() 356 Runtime::Current()->DumpDeoptimizations(LOG_STREAM(INFO)); in ~Jit() [all …]
|
/art/test/141-class-unload/ |
D | jni_unload.cc | 29 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_IntHolder_waitForCompilation() 31 jit->WaitForCompilationToFinish(Thread::Current()); in Java_IntHolder_waitForCompilation() 36 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_stopJit() 43 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_startJit()
|
/art/runtime/gc/space/ |
D | bump_pointer_space.cc | 79 MutexLock mu(Thread::Current(), block_lock_); in Clear() 97 MutexLock mu(Thread::Current(), block_lock_); in RevokeThreadLocalBuffers() 103 Thread* self = Thread::Current(); in RevokeAllThreadLocalBuffers() 107 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in RevokeAllThreadLocalBuffers() 116 MutexLock mu(Thread::Current(), block_lock_); in AssertThreadLocalBuffersAreRevoked() 123 Thread* self = Thread::Current(); in AssertAllThreadLocalBuffersAreRevoked() 127 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in AssertAllThreadLocalBuffersAreRevoked() 161 MutexLock mu(Thread::Current(), block_lock_); in Walk() 216 Thread* self = Thread::Current(); in GetBytesAllocated() 219 std::list<Thread*> thread_list = Runtime::Current()->GetThreadList()->GetList(); in GetBytesAllocated() [all …]
|
/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/test/596-app-images/ |
D | app_images.cc | 36 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageLoaded() 37 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageLoaded() 50 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageContains() 52 for (auto* space : Runtime::Current()->GetHeap()->GetContinuousSpaces()) { in Java_Main_checkAppImageContains()
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 65 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 69 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 90 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 117 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 143 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 151 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 155 Runtime::Current()->GetHeap()->ClampGrowthLimit(); in VMRuntime_clampGrowthLimit() 163 return Runtime::Current()->IsNativeDebuggable(); in VMRuntime_isNativeDebuggable() 167 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties() 180 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath() [all …]
|
/art/test/common/ |
D | runtime_state.cc | 39 Runtime* runtime = Runtime::Current(); in GetJitIfEnabled() 67 return Runtime::Current()->IsVerificationSoftFail() ? JNI_TRUE : JNI_FALSE; in Java_Main_runtimeIsSoftFail() 74 return Runtime::Current()->IsDex2OatEnabled(); in Java_Main_isDex2OatEnabled() 81 return Runtime::Current()->GetHeap()->HasBootImageSpace(); in Java_Main_hasImage() 88 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled() 145 Thread* self = Thread::Current(); in Java_Main_isAotCompiled() 162 Thread* self = Thread::Current(); in Java_Main_isJitCompiled() 180 Thread* self = Thread::Current(); in Java_Main_ensureJitCompiled() 221 ScopedObjectAccess soa(Thread::Current()); in Java_Main_hasSingleImplementation() 233 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_getHotnessCounter() [all …]
|
/art/compiler/dex/ |
D | verification_results.cc | 38 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ~VerificationResults() 67 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in ProcessVerifiedMethod() 84 if (!Runtime::Current()->UseJitCompilation()) { in ProcessVerifiedMethod() 98 ReaderMutexLock mu(Thread::Current(), verified_methods_lock_); in GetVerifiedMethod() 117 WriterMutexLock mu(Thread::Current(), rejected_classes_lock_); in AddRejectedClass() 124 ReaderMutexLock mu(Thread::Current(), rejected_classes_lock_); in IsClassRejected() 143 WriterMutexLock mu(Thread::Current(), verified_methods_lock_); in AddDexFile()
|
/art/test/566-polymorphic-inlining/ |
D | polymorphic_inline.cc | 29 ScopedObjectAccess soa(Thread::Current()); in do_checks() 31 jit::Jit* jit = Runtime::Current()->GetJit(); in do_checks() 56 ScopedObjectAccess soa(Thread::Current()); in allocate_profiling_info() 63 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_ensureProfilingInfo566() 74 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_ensureJittedAndPolymorphicInline566()
|