/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() 121 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad() argument 142 return fn(vm, remaining_options, reserved); in Agent_OnLoad() 145 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument [all …]
|
D | redefinition_helper.cc | 171 jint OnLoad(JavaVM* vm, in OnLoad() argument 174 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad() 328 JavaVM* vm = nullptr; in Java_art_Redefinition_doCommonClassRetransformation() local 329 if (env->GetJavaVM(&vm) != 0 || in Java_art_Redefinition_doCommonClassRetransformation() 330 vm->GetEnv(reinterpret_cast<void**>(&real_env), JVMTI_VERSION_1_0) != 0) { in Java_art_Redefinition_doCommonClassRetransformation() 346 jint OnLoad(JavaVM* vm, in OnLoad() argument 349 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad() 362 jint OnLoad(JavaVM* vm, in OnLoad() argument 365 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad()
|
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/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/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/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/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/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()
|
D | attach.h | 25 jint OnAttach(JavaVM* vm, char* options, void* reserved);
|
/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/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/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/runtime/ |
D | scoped_thread_state_change.h | 114 explicit ScopedObjectAccessAlreadyRunnable(JavaVM* vm) in ScopedObjectAccessAlreadyRunnable() argument 115 : self_(nullptr), env_(nullptr), vm_(reinterpret_cast<JavaVMExt*>(vm)) {} in ScopedObjectAccessAlreadyRunnable() 157 explicit ScopedObjectAccessUnchecked(JavaVM* vm) ALWAYS_INLINE in ScopedObjectAccessUnchecked() argument 158 : ScopedObjectAccessAlreadyRunnable(vm), tsc_() {} in ScopedObjectAccessUnchecked() 186 explicit ScopedObjectAccess(JavaVM* vm) SHARED_LOCK_FUNCTION(Locks::mutator_lock_) in ScopedObjectAccess() argument 187 : ScopedObjectAccessUnchecked(vm) {} in ScopedObjectAccess()
|
/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/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/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()
|
D | search_onload.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
/art/build/apex/ |
D | art_preinstall_hook_boot.sh | 50 DEX2OAT_IMAGE_XMX=`getprop dalvik.vm.image-dex2oat-Xmx` 53 DEX2OAT_TARGET_CPU_VARIANT=`getprop dalvik.vm.isa.${DEX2OAT_TARGET_ARCH}.variant` 54 DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES=`getprop dalvik.vm.isa.${DEX2OAT_TARGET_ARCH}.features`
|
D | art_preinstall_hook_system_server.sh | 45 DEX2OAT_IMAGE_XMX=`getprop dalvik.vm.dex2oat-Xmx` 48 DEX2OAT_TARGET_CPU_VARIANT=`getprop dalvik.vm.isa.${DEX2OAT_TARGET_ARCH}.variant` 49 DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES=`getprop dalvik.vm.isa.${DEX2OAT_TARGET_ARCH}.features`
|
/art/tools/ |
D | run-jdwp-tests.sh | 407 --vm-arg -Djpda.settings.verbose=true \ 408 --vm-arg -Djpda.settings.timeout=$jdwp_test_timeout \ 409 --vm-arg -Djpda.settings.waitingTime=$jdwp_test_timeout \ 410 --vm-arg -Djpda.settings.transportAddress=127.0.0.1:55107 \ 411 --vm-arg -Djpda.settings.dumpProcess="$dump_command" \ 412 --vm-arg -Djpda.settings.debuggeeJavaPath="$art_debugee $plugin $debuggee_args" \
|
D | run-libjdwp-tests.sh | 103 args+=(--vm-arg) 124 --vm-arg -Djpda.settings.debuggeeAgentExtraOptions=coredump=y \
|
/art/dalvikvm/ |
D | dalvikvm.cc | 175 JavaVM* vm = nullptr; in dalvikvm() local 177 if (JNI_CreateJavaVM(&vm, &env, &init_args) != JNI_OK) { in dalvikvm() 195 if (vm->DetachCurrentThread() != JNI_OK) { in dalvikvm() 201 if (vm->DestroyJavaVM() != 0) { in dalvikvm()
|
/art/test/901-hello-ti-agent/ |
D | basics.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|