Home
last modified time | relevance | path

Searched refs:JavaVM (Results 1 – 25 of 44) sorted by relevance

12

/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()
121 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad()
145 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
Dredefinition_helper.cc171 jint OnLoad(JavaVM* vm, in OnLoad()
328 JavaVM* vm = nullptr; in Java_art_Redefinition_doCommonClassRetransformation()
346 jint OnLoad(JavaVM* vm, in OnLoad()
362 jint OnLoad(JavaVM* vm, in OnLoad()
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc40 using AgentUnloadFunction = jint (*)(JavaVM*);
55 JavaVM* real_vm;
61 ProxyJavaVM(JavaVM* vm, const std::string& agent_lib, PropMap* map) in ProxyJavaVM()
113 out->DestroyJavaVM = reinterpret_cast<jint (*)(JavaVM*)>(WrapDestroyJavaVM); in CreateInvokeInterface()
115 reinterpret_cast<jint(*)(JavaVM*, JNIEnv**, void*)>(WrapAttachCurrentThread); in CreateInvokeInterface()
116 out->DetachCurrentThread = reinterpret_cast<jint(*)(JavaVM*)>(WrapDetachCurrentThread); in CreateInvokeInterface()
117 out->GetEnv = reinterpret_cast<jint(*)(JavaVM*, void**, jint)>(WrapGetEnv); in CreateInvokeInterface()
119 reinterpret_cast<jint(*)(JavaVM*, JNIEnv**, void*)>(WrapAttachCurrentThreadAsDaemon); in CreateInvokeInterface()
305 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart()
326 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach()
[all …]
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv()
91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart()
106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
111 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
/art/test/900-hello-plugin/
Dload_unload.cc54 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, in Agent_OnLoad()
70 extern "C" JNIEXPORT void JNICALL Agent_OnUnload(JavaVM* vm ATTRIBUTE_UNUSED) { in Agent_OnUnload()
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc38 static JavaVM* java_vm = nullptr;
77 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv()
169 static jint AgentStart(JavaVM* vm, char* options, bool is_onload) { in AgentStart()
204 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, in Agent_OnAttach()
211 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, in Agent_OnLoad()
/art/runtime/
Dscoped_thread_state_change.h114 explicit ScopedObjectAccessAlreadyRunnable(JavaVM* vm) in ScopedObjectAccessAlreadyRunnable()
157 explicit ScopedObjectAccessUnchecked(JavaVM* vm) ALWAYS_INLINE in ScopedObjectAccessUnchecked()
186 explicit ScopedObjectAccess(JavaVM* vm) SHARED_LOCK_FUNCTION(Locks::mutator_lock_) in ScopedObjectAccess()
Dscoped_thread_state_change.cc30 static_assert(std::is_base_of<JavaVM, JavaVMExt>::value, "JavaVMExt does not extend JavaVM");
/art/tools/jvmti-agents/jit-load/
Djitload.cc92 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti()
120 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad()
126 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach()
/art/test/936-search-onload/
Dsearch_onload.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
Dsearch_onload.cc36 jint OnLoad(JavaVM* vm, in OnLoad()
/art/test/909-attach-agent/
Dattach.h25 jint OnAttach(JavaVM* vm, char* options, void* reserved);
Dattach.cc37 jint OnAttach(JavaVM* vm, in OnAttach()
/art/test/1919-vminit-thread-start-timing/
Dvminit.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
/art/test/901-hello-ti-agent/
Dbasics.h25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
/art/benchmark/
Djni_loader.cc21 jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad()
/art/runtime/ti/
Dagent.h87 using AgentOnLoadFunction = jint (*)(JavaVM*, const char*, void*);
88 using AgentOnUnloadFunction = void (*)(JavaVM*);
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in Java_Main_destroyJavaVMAndExit()
/art/runtime/jni/
Djava_vm_ext.cc230 void UnloadBootNativeLibraries(JavaVM* vm) const NO_THREAD_SAFETY_ANALYSIS { in UnloadBootNativeLibraries()
362 static void UnloadLibraries(JavaVM* vm, const std::vector<SharedLibrary*>& libraries) { in UnloadLibraries()
363 using JNI_OnUnloadFn = void(*)(JavaVM*, void*); in UnloadLibraries()
383 static jint DestroyJavaVM(JavaVM* vm) { in DestroyJavaVM()
393 static jint AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThread()
397 static jint AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThreadAsDaemon()
401 static jint DetachCurrentThread(JavaVM* vm) { in DetachCurrentThread()
411 static jint GetEnv(JavaVM* vm, void** env, jint version) { in GetEnv()
425 …static jint AttachCurrentThreadInternal(JavaVM* vm, JNIEnv** p_env, void* raw_args, bool as_daemon… in AttachCurrentThreadInternal()
1071 using JNI_OnLoadFn = int(*)(JavaVM*, void*); in LoadNativeLibrary()
[all …]
Djava_vm_ext_test.cc50 JavaVM* vms_buf[1]; in TEST_F()
62 JavaVM* vms_buf[1]; in attach_current_thread_callback()
/art/test/1941-dispose-stress/
Ddispose_stress.cc45 JavaVM* vm = nullptr; in Java_art_Test1941_AllocEnv()
/art/tools/jvmti-agents/titrace/
Dtitrace.cc230 JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach()
235 JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, in Agent_OnLoad()
308 JNIEXPORT void JNICALL Agent_OnUnload(JavaVM* vm ATTRIBUTE_UNUSED) { in Agent_OnUnload()
/art/test/169-threadgroup-jni/
Djni_daemon_thread.cc25 static JavaVM* vm = nullptr;
/art/test/1909-per-agent-tls/
Dagent_tls.cc59 JavaVM* vm = nullptr; in Java_art_Test1909_newJvmtiEnv()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc266 static jint AgentStart(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { in AgentStart()
308 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
313 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()

12