Lines Matching refs:vm
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()
90 return vm->real_vm->AttachCurrentThreadAsDaemon(env, res); in WrapAttachCurrentThreadAsDaemon()
93 static jint WrapGetEnv(ProxyJavaVM* vm, void** out_env, jint version) { in WrapGetEnv()
99 return CreateJvmtiEnv(vm, out_env, version); in WrapGetEnv()
106 return vm->real_vm->GetEnv(out_env, version); in WrapGetEnv()
211 static jint SetupProxyJvmtiEnv(ProxyJavaVM* vm, jvmtiEnv* real_env) { in SetupProxyJvmtiEnv()
219 new_iface->proxy_vm = vm; in SetupProxyJvmtiEnv()
235 static jint CreateJvmtiEnv(ProxyJavaVM* vm, void** out_env, jint version) { in CreateJvmtiEnv() argument
236 jint res = vm->real_vm->GetEnv(out_env, version); in CreateJvmtiEnv()
241 return ExtraJvmtiInterface::SetupProxyJvmtiEnv(vm, reinterpret_cast<jvmtiEnv*>(*out_env)); in CreateJvmtiEnv()
249 ProxyJavaVM* vm, in CallNextAgent() argument
254 return ((start == StartType::OnLoad) ? vm->load : vm->attach)(vm, options.c_str(), reserved); in CallNextAgent()
305 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() argument
319 ProxyJavaVM* proxy = new ProxyJavaVM(vm, agent_lib, map); in AgentStart()
326 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach() argument
327 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()