Home
last modified time | relevance | path

Searched refs:vm (Results 1 – 25 of 52) sorted by relevance

123

/art/test/ti-agent/
Dcommon_load.cc36 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 …]
Dredefinition_helper.cc171 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()
Dframe_pop_helper.cc108 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/
Dwrapagentproperties.cc51 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/
Djni_daemon_thread.cc25 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/
Dload_unload.cc33 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/
Ddump-jvmti.cc47 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/
Djitload.cc92 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/
Dattach.cc37 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()
Dattach.h25 jint OnAttach(JavaVM* vm, char* options, void* reserved);
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc61 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/
Djni_loader.cc21 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/
Ddispose_stress.cc45 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/
Dscoped_thread_state_change.h114 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/
Dfieldnull.cc77 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/
Dagent_tls.cc59 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/
Dsearch_onload.cc36 jint OnLoad(JavaVM* vm, in OnLoad() argument
39 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { in OnLoad()
Dsearch_onload.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
/art/build/apex/
Dart_preinstall_hook_boot.sh50 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`
Dart_preinstall_hook_system_server.sh45 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/
Drun-jdwp-tests.sh407 --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" \
Drun-libjdwp-tests.sh103 args+=(--vm-arg)
124 --vm-arg -Djpda.settings.debuggeeAgentExtraOptions=coredump=y \
/art/dalvikvm/
Ddalvikvm.cc175 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/
Dbasics.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
/art/test/1919-vminit-thread-start-timing/
Dvminit.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);

123