Home
last modified time | relevance | path

Searched refs:Runtime (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/art/runtime/
Druntime-inl.h35 inline bool Runtime::IsClearedJniWeakGlobal(ObjPtr<mirror::Object> obj) { in IsClearedJniWeakGlobal()
39 inline mirror::Object* Runtime::GetClearedJniWeakGlobal() { in GetClearedJniWeakGlobal()
45 inline QuickMethodFrameInfo Runtime::GetRuntimeMethodFrameInfo(ArtMethod* method) { in GetRuntimeMethodFrameInfo()
66 inline ArtMethod* Runtime::GetResolutionMethod() { in GetResolutionMethod()
71 inline ArtMethod* Runtime::GetImtConflictMethod() { in GetImtConflictMethod()
76 inline ArtMethod* Runtime::GetImtUnimplementedMethod() { in GetImtUnimplementedMethod()
81 inline ArtMethod* Runtime::GetCalleeSaveMethod(CalleeSaveType type) in GetCalleeSaveMethod()
87 inline ArtMethod* Runtime::GetCalleeSaveMethodUnchecked(CalleeSaveType type) in GetCalleeSaveMethodUnchecked()
93 void Runtime::DoAndMaybeSwitchInterpreter(Action lamda) { in DoAndMaybeSwitchInterpreter()
96 Runtime::Current()->GetThreadList()->ForEach([](Thread* thread, void*) { in DoAndMaybeSwitchInterpreter()
Druntime.cc197 Runtime* Runtime::instance_ = nullptr;
228 Runtime::Runtime() in Runtime() function in art::Runtime
300 static_assert(Runtime::kCalleeSaveSize == in Runtime()
312 Runtime::~Runtime() { in ~Runtime()
523 if (Runtime::Current() == nullptr) { in Dump()
562 Runtime* runtime = Runtime::Current(); in DumpAllThreads()
610 void Runtime::Abort(const char* msg) { in Abort()
619 Runtime* current = Runtime::Current(); in Abort()
628 Runtime* current = Runtime::Current(); in Abort()
668 if (Runtime::Current() != nullptr && Runtime::Current()->abort_ != nullptr) { in Abort()
[all …]
Dscoped_thread_state_change.cc35 DCHECK_NE(obj, Runtime::Current()->GetClearedJniWeakGlobal()); in DCheckObjIsNotClearedJniWeakGlobal()
44 Runtime* runtime = Runtime::Current(); in ScopedThreadChangeDestructorCheck()
/art/runtime/jni/
Djni_internal.h86 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/native/
Ddalvik_system_ZygoteHooks.cc116 Runtime* const runtime = Runtime::Current(); in CollectNonDebuggableClasses()
163 Runtime* const runtime = Runtime::Current(); in EnableDebugFeatures()
199 Runtime::Current()->DoAndMaybeSwitchInterpreter([=]() { in EnableDebugFeatures()
253 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePreFork()
263 Runtime::Current()->PostZygoteFork(); in ZygoteHooks_nativePostZygoteFork()
271 Runtime::Current()->SetAsSystemServer(); in ZygoteHooks_nativePostForkSystemServer()
277 if (Runtime::Current()->GetJit() != nullptr) { in ZygoteHooks_nativePostForkSystemServer()
278 Runtime::Current()->GetJit()->GetCodeCache()->PostForkChildAction( in ZygoteHooks_nativePostForkSystemServer()
285 Runtime::Current()->GetJITOptions()->SetSaveProfilingInfo(profile_system_server); in ZygoteHooks_nativePostForkSystemServer()
298 Runtime::Current()->SetAsZygoteChild(is_system_server, is_zygote); in ZygoteHooks_nativePostForkChild()
[all …]
Ddalvik_system_VMRuntime.cc72 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/tools/cpp-define-generator/
Druntime.def22 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves))
24 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit))
26 … art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck))
28 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything))
30 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs))
32 art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly))
/art/test/1337-gc-coverage/
Dgc_coverage.cc27 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/gc/
Dsystem_weak_test.cc111 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()
147 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
161 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
168 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
181 Runtime::Current()->AddSystemWeakHolder(&cswh); in TEST_F()
192 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
204 Runtime::Current()->RemoveSystemWeakHolder(&cswh); in TEST_F()
207 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
Dscoped_gc_critical_section.cc28 Runtime::Current()->GetHeap()->StartGC(self_, cause, type); in Enter()
47 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in Exit()
66 Runtime::Current()->GetHeap()->StartGC(self_, cause, type); in ScopedInterruptibleGCCriticalSection()
70 Runtime::Current()->GetHeap()->FinishGC(self_, collector::kGcTypeNone); in ~ScopedInterruptibleGCCriticalSection()
Dheap_verification_test.cc50 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
78 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
97 const Verification* const v = Runtime::Current()->GetHeap()->GetVerification(); in TEST_F()
106 Runtime* const runtime = Runtime::Current(); in TEST_F()
124 Runtime* const runtime = Runtime::Current(); in TEST_F()
150 Runtime* const runtime = Runtime::Current(); in TEST_F()
170 Runtime* const runtime = Runtime::Current(); in TEST_F()
Dheap_test.cc54 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F()
84 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
98 Runtime::Current()->GetHeap()->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
99 Runtime::Current()->SetDumpGCPerformanceOnShutdown(true); in TEST_F()
111 Runtime::Current()->GetHeap()->PreZygoteFork(); in TEST_F()
/art/test/570-checker-osr/
Dosr.cc57 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()
119 if (!Runtime::Current()->UseJitCompilation()) { in Java_Main_ensureHasOsrCode()
127 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_ensureHasOsrCode()
/art/test/079-phantom/src/
DMain.java43 Runtime.getRuntime().gc(); in run()
50 Runtime.getRuntime().gc(); in run()
59 Runtime.getRuntime().gc(); in run()
64 Runtime.getRuntime().gc(); in run()
69 Runtime.getRuntime().gc(); in run()
/art/test/150-loadlibrary/src/
DMain.java31 Method libPathsMethod = Runtime.class.getDeclaredMethod("getLibPaths"); in main()
33 String[] libPaths = (String[])libPathsMethod.invoke(Runtime.getRuntime()); in main()
50 Method m = Runtime.class.getDeclaredMethod("nativeLoad", String.class, ClassLoader.class); in main()
52 Object result = m.invoke(Runtime.getRuntime(), fileName, bootClassLoader); in main()
/art/test/667-jit-jni-stub/
Djit_jni_stub_test.cc32 CHECK(Runtime::Current()->GetJit() != nullptr); in isNextJitGcFull()
33 jit::JitCodeCache* cache = Runtime::Current()->GetJit()->GetCodeCache(); in isNextJitGcFull()
51 CHECK(Runtime::Current()->GetJit() != nullptr); in Java_Main_jitGc()
52 jit::JitCodeCache* cache = Runtime::Current()->GetJit()->GetCodeCache(); in Java_Main_jitGc()
/art/test/2031-zygote-compiled-frame-deopt/
Dnative-wait.cc38 Runtime* runtime = Runtime::Current(); in Java_art_Test2031_simulateZygoteFork()
69 Runtime* runtime = Runtime::Current(); in Java_art_Test2031_setupJvmti()
/art/test/482-checker-loop-back-edge-use/src/
DMain.java66 while (Runtime.getRuntime() != null) {} in loop3()
80 while (Runtime.getRuntime() != null) {} in loop4()
142 while (Runtime.getRuntime() != null) { in loop7()
164 while (Runtime.getRuntime() != null) { in loop8()
/art/runtime/jit/
Djit.cc244 !Runtime::Current()->GetInstrumentation()->AreExitStubsInstalled()); in Create()
255 for (const std::string& option : Runtime::Current()->GetCompilerOptions()) { in Create()
263 jit->DumpTypeInfoForLoadedTypes(Runtime::Current()->GetClassLinker()); in Create()
297 DCHECK(Runtime::Current()->UseJitCompilation()); in CompileMethod()
300 RuntimeCallbacks* cb = Runtime::Current()->GetRuntimeCallbacks(); in CompileMethod()
319 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in CompileMethod()
417 Runtime::Current()->DumpDeoptimizations(LOG_STREAM(INFO)); in ~Jit()
431 if (!Runtime::Current()->UseJitCompilation()) { in NewTypeLoadedIfUsingJit()
435 jit::Jit* jit = Runtime::Current()->GetJit(); in NewTypeLoadedIfUsingJit()
565 Jit* jit = Runtime::Current()->GetJit(); in MaybeDoOnStackReplacement()
[all …]
/art/test/1002-notify-startup/
Dstartup_interface.cc24 return Runtime::Current()->GetStartupCompleted(); in Java_Main_hasStartupCompleted()
28 Runtime::Current()->ResetStartupCompleted(); in Java_Main_resetStartupCompleted()
/art/test/597-deopt-new-string/
Ddeopt.cc42 Runtime::Current()->GetInstrumentation()->EnableDeoptimization(); in Java_Main_deoptimizeAll()
45 Runtime::Current()->GetInstrumentation()->DeoptimizeEverything("test"); in Java_Main_deoptimizeAll()
58 Runtime::Current()->GetInstrumentation()->UndeoptimizeEverything("test"); in Java_Main_undeoptimizeAll()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints_test.cc39 ASSERT_EQ(InstructionSet::kX86_64, Runtime::Current()->GetInstructionSet()); in FinalizeSetup()
44 Runtime* r = Runtime::Current(); in CreateCalleeSaveMethod()
60 QuickMethodFrameInfo frame_info = Runtime::Current()->GetRuntimeMethodFrameInfo(save_method); in CheckPCOffset()
/art/openjdkjvmti/
Ddeopt_manager.cc74 return !art::Runtime::Current()->IsJavaDebuggable() || in IsMethodBeingInspected()
105 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Setup()
113 art::RuntimeCallbacks* callbacks = art::Runtime::Current()->GetRuntimeCallbacks(); in Shutdown()
161 art::Runtime::Current()->GetThreadList()->ForEach(func, &dtdc); in DumpDeoptInfo()
168 art::Runtime* runtime = art::Runtime::Current(); in FinishSetup()
262 auto instrumentation = art::Runtime::Current()->GetInstrumentation(); in AddMethodBreakpoint()
298 auto instrumentation = art::Runtime::Current()->GetInstrumentation(); in RemoveMethodBreakpoint()
347 art::Runtime::Current()->GetThreadList()->SuspendAll("JMVTI Deoptimizing methods", in ScopedDeoptimizationContext()
357 art::Runtime::Current()->GetThreadList()->ResumeAll(); in RELEASE()
392 art::Runtime::Current()->GetInstrumentation()->Deoptimize(method); in PerformLimitedDeoptimization()
[all …]
/art/test/common/
Druntime_state.cc49 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()
182 Runtime::Current()->GetClassLinker()->ShouldUseInterpreterEntrypoint(method, actual_code) || in Java_Main_isAotCompiled()
214 Runtime::Current()->GetInstrumentation()->GetCodeForInvoke(method)); in Java_Main_hasJitCompiledEntrypoint()
238 } else if (!Runtime::Current()->GetRuntimeCallbacks()->IsMethodSafeToJit(method)) { in ForceJitCompiled()
248 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in ForceJitCompiled()
367 return Runtime::Current()->GetNumberOfDeoptimizations(); in Java_Main_numberOfDeoptimizations()
384 jit::Jit* jit = Runtime::Current()->GetJit(); in Java_Main_waitForCompilation()
[all …]
/art/test/003-omnibus-opcodes/src/
DInternedString.java37 Runtime.getRuntime().gc(); in testDeadInternedString()
44 Runtime.getRuntime().gc(); in testImmortalInternedString()
56 Runtime.getRuntime().gc(); in testImmortalInternedString()

12345678910>>...16