/art/test/ti-agent/ |
D | common_load.cc | 36 jint OnLoad(JavaVM* vm, char* options, void* reserved); 40 jint OnLoad(JavaVM* vm, char* options, void* reserved); 44 jint OnLoad(JavaVM* vm, char* options, void* reserved); 49 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved); 50 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved); 59 static jint MinimalOnLoad(JavaVM* vm, in MinimalOnLoad() argument 62 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0) != 0) { in MinimalOnLoad() 123 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad() argument 144 return fn(vm, remaining_options, reserved); in Agent_OnLoad() 147 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument [all …]
|
D | frame_pop_helper.cc | 108 JavaVM* vm; in Java_art_FramePop_makeJvmtiEnvForFramePop() local 110 if (env->GetJavaVM(&vm) != JNI_OK || in Java_art_FramePop_makeJvmtiEnvForFramePop() 111 vm->GetEnv(reinterpret_cast<void**>(&out_jvmti_env), JVMTI_VERSION_1_0) != JNI_OK) { in Java_art_FramePop_makeJvmtiEnvForFramePop()
|
/art/tools/jvmti-agents/wrapagentproperties/ |
D | wrapagentproperties.cc | 51 static jint CreateJvmtiEnv(ProxyJavaVM* vm, void** out_env, jint version); 61 ProxyJavaVM(JavaVM* vm, const std::string& agent_lib, PropMap* map) in ProxyJavaVM() 63 real_vm(vm), in ProxyJavaVM() 80 static jint WrapDestroyJavaVM(ProxyJavaVM* vm) { in WrapDestroyJavaVM() 81 return vm->real_vm->DestroyJavaVM(); in WrapDestroyJavaVM() 83 static jint WrapAttachCurrentThread(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThread() 84 return vm->real_vm->AttachCurrentThread(env, res); in WrapAttachCurrentThread() 86 static jint WrapDetachCurrentThread(ProxyJavaVM* vm) { in WrapDetachCurrentThread() 87 return vm->real_vm->DetachCurrentThread(); in WrapDetachCurrentThread() 89 static jint WrapAttachCurrentThreadAsDaemon(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThreadAsDaemon() [all …]
|
/art/test/922-properties/ |
D | expected-stdout.txt | 6 "java.vm.info": OK !!!JVMTI_ERROR_NOT_AVAILABLE 8 "java.vm.name": OK 10 "java.vm.vendor": OK 12 "java.vm.version": OK 14 Missing recommended properties: [java.vm.info] 40 "java.vm.specification.name": OK 42 "java.vm.specification.vendor": OK 44 "java.vm.specification.version": OK 46 "java.vm.vendor.url": OK
|
/art/test/169-threadgroup-jni/ |
D | jni_daemon_thread.cc | 25 static JavaVM* vm = nullptr; variable 28 CHECK(vm != nullptr); in Runner() 33 int attach_result = vm->AttachCurrentThread(&env, &args); in Runner() 46 int detach_result = vm->DetachCurrentThread(); in Runner() 53 CHECK_EQ(env->GetJavaVM(&vm), 0); in Java_Main_testNativeThread()
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 49 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 53 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart() argument 93 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart() 106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument 107 return AgentStart(vm, options, reserved); in Agent_OnAttach()
|
/art/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 92 static jint AgentStart(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { in AgentStart() argument 94 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart() 110 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument 111 return AgentStart(vm, options, reserved); in Agent_OnAttach()
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 92 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti() argument 96 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_0) != JNI_OK && in SetupJvmti() 97 vm->GetEnv(reinterpret_cast<void**>(&jvmti), kArtTiVersion) != JNI_OK) { in SetupJvmti() 120 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad() argument 121 SetupJvmti(vm, options); in Agent_OnLoad() 126 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach() argument 127 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach() 131 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&jni), JNI_VERSION_1_6)); in Agent_OnAttach()
|
/art/test/900-hello-plugin/ |
D | load_unload.cc | 33 static jint GetEnvHandler(JavaVMExt* vm ATTRIBUTE_UNUSED, void** new_env, jint version) { in GetEnvHandler() 54 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, in Agent_OnLoad() argument 62 jint res = vm->GetEnv(reinterpret_cast<void**>(&env), TEST_900_ENV_VERSION_NUMBER); in Agent_OnLoad() 70 extern "C" JNIEXPORT void JNICALL Agent_OnUnload(JavaVM* vm ATTRIBUTE_UNUSED) { in Agent_OnUnload()
|
/art/test/909-attach-agent/ |
D | attach.cc | 37 jint OnAttach(JavaVM* vm, in OnAttach() argument 52 if (vm->GetEnv(reinterpret_cast<void**>(&env), kArtTiVersion) == JNI_OK) { in OnAttach() 60 if (vm->GetEnv(reinterpret_cast<void**>(&env), JVMTI_VERSION_1_0) != JNI_OK) { in OnAttach() 64 CHECK_CALL_SUCCESS(vm->GetEnv(reinterpret_cast<void**>(&env2), JVMTI_VERSION_1_0)); in OnAttach()
|
/art/tools/jvmti-agents/chain-agents/ |
D | chainagents.cc | 66 JavaVM* vm, in Load() argument 85 jint res = alf(vm, lib_and_args.second.c_str(), reserved); in Load() 97 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() argument 106 jint new_res = Load(start, vm, reserved, lib_and_args, &err); in AgentStart() 116 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument 117 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()
|
/art/test/136-daemon-jni-shutdown/ |
D | daemon_jni_shutdown.cc | 61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in Java_Main_destroyJavaVMAndExit() local 62 vm->DetachCurrentThread(); in Java_Main_destroyJavaVMAndExit() 67 vm->DestroyJavaVM(); in Java_Main_destroyJavaVMAndExit()
|
/art/runtime/ |
D | scoped_thread_state_change.h | 116 explicit ScopedObjectAccessAlreadyRunnable(JavaVM* vm) in ScopedObjectAccessAlreadyRunnable() argument 117 : self_(nullptr), env_(nullptr), vm_(reinterpret_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 159 explicit ScopedObjectAccessUnchecked(JavaVM* vm) ALWAYS_INLINE in ScopedObjectAccessUnchecked() argument 160 : ScopedObjectAccessAlreadyRunnable(vm), tsc_() {} in ScopedObjectAccessUnchecked() 188 explicit ScopedObjectAccess(JavaVM* vm) SHARED_LOCK_FUNCTION(Locks::mutator_lock_) in ScopedObjectAccess() argument 189 : ScopedObjectAccessUnchecked(vm) {} in ScopedObjectAccess()
|
/art/test/1941-dispose-stress/ |
D | dispose_stress.cc | 45 JavaVM* vm = nullptr; in Java_art_Test1941_AllocEnv() local 46 if (env->GetJavaVM(&vm) != 0) { in Java_art_Test1941_AllocEnv() 52 if (vm->GetEnv(reinterpret_cast<void**>(&new_env), JVMTI_VERSION_1_0) != 0) { in Java_art_Test1941_AllocEnv()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 77 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 79 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 83 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 169 static jint AgentStart(JavaVM* vm, char* options, bool is_onload) { in AgentStart() argument 171 java_vm = vm; in AgentStart() 173 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart() 193 CHECK_EQ(vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in AgentStart() 204 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, in Agent_OnAttach() argument 207 return AgentStart(vm, options, /*is_onload=*/false); in Agent_OnAttach()
|
/art/tools/ |
D | run-jdwp-tests.sh | 434 --vm-arg -Djpda.settings.verbose=true \ 435 --vm-arg -Djpda.settings.timeout=$jdwp_test_timeout \ 436 --vm-arg -Djpda.settings.waitingTime=$jdwp_test_timeout \ 437 --vm-arg -Djpda.settings.transportAddress=127.0.0.1:55107 \ 438 --vm-arg -Djpda.settings.dumpProcess="$dump_command" \ 439 --vm-arg -Djpda.settings.debuggeeJavaPath="$art_debugee $plugin $debuggee_args" \ 440 --vm-arg -Djpda.settings.badTestCases="$skip_tests" \
|
D | boot-image-profile-configure-device.sh | 56 adb shell setprop dalvik.vm.profilebootclasspath true 57 adb shell setprop dalvik.vm.profilesystemserver true
|
D | run-libjdwp-tests.sh | 123 args+=(--vm-arg) 151 --vm-arg -Djpda.settings.debuggeeAgentExtraOptions=coredump=y \ 152 --vm-arg -Djpda.settings.testSuiteType=libjdwp \
|
/art/benchmark/ |
D | jni_loader.cc | 21 jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad() argument 23 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/art/tools/jvmti-agents/list-extensions/ |
D | list-extensions.cc | 85 jint SetupJvmtiEnv(JavaVM* vm) { in SetupJvmtiEnv() argument 88 res = vm->GetEnv(reinterpret_cast<void**>(&env), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 92 res = vm->GetEnv(reinterpret_cast<void**>(&env), kArtTiVersion); in SetupJvmtiEnv() 150 jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED) { in AgentStart() argument 151 if (SetupJvmtiEnv(vm) != JNI_OK) { in AgentStart() 161 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument 162 return AgentStart(vm, options, reserved); in Agent_OnAttach()
|
/art/test/1909-per-agent-tls/ |
D | agent_tls.cc | 59 JavaVM* vm = nullptr; in Java_art_Test1909_newJvmtiEnv() local 60 if (env->GetJavaVM(&vm) != 0) { in Java_art_Test1909_newJvmtiEnv() 66 if (vm->GetEnv(reinterpret_cast<void**>(&new_env), JVMTI_VERSION_1_0) != 0) { in Java_art_Test1909_newJvmtiEnv()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 225 static jint AgentStart(JavaVM* vm, char* options, bool is_onload) { in AgentStart() argument 227 java_vm = vm; in AgentStart() 229 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart() 251 CHECK_EQ(vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6), JNI_OK); in AgentStart() 261 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, in Agent_OnAttach() argument 264 return AgentStart(vm, options, /*is_onload=*/false); in Agent_OnAttach()
|
/art/test/936-search-onload/ |
D | search_onload.cc | 36 jint OnLoad(JavaVM* vm, in OnLoad() argument 39 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad()
|
/art/dalvikvm/ |
D | dalvikvm.cc | 176 JavaVM* vm = nullptr; in dalvikvm() local 178 if (JNI_CreateJavaVM(&vm, &env, &init_args) != JNI_OK) { in dalvikvm() 196 if (vm->DetachCurrentThread() != JNI_OK) { in dalvikvm() 202 if (vm->DestroyJavaVM() != 0) { in dalvikvm()
|
/art/runtime/jni/ |
D | java_vm_ext.cc | 232 void UnloadBootNativeLibraries(JavaVM* vm) const NO_THREAD_SAFETY_ANALYSIS { in UnloadBootNativeLibraries() 241 UnloadLibraries(vm, unload_libraries); in UnloadBootNativeLibraries() 364 static void UnloadLibraries(JavaVM* vm, const std::vector<SharedLibrary*>& libraries) { in UnloadLibraries() argument 373 jni_on_unload(vm, nullptr); in UnloadLibraries() 385 static jint DestroyJavaVM(JavaVM* vm) { in DestroyJavaVM() argument 386 if (vm == nullptr) { in DestroyJavaVM() 389 JavaVMExt* raw_vm = reinterpret_cast<JavaVMExt*>(vm); in DestroyJavaVM() 402 static jint AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThread() argument 403 return AttachCurrentThreadInternal(vm, p_env, thr_args, false); in AttachCurrentThread() 406 static jint AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThreadAsDaemon() argument [all …]
|