/art/test/ti-agent/ |
D | common_load.cc | 37 jint OnLoad(JavaVM* vm, char* options, void* reserved); 41 jint OnLoad(JavaVM* vm, char* options, void* reserved); 45 jint OnLoad(JavaVM* vm, char* options, void* reserved); 50 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved); 51 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved); 60 static jint MinimalOnLoad(JavaVM* vm, in MinimalOnLoad() 125 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad() 149 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
|
/art/tools/jvmti-agents/chain-agents/ |
D | chainagents.cc | 39 using AgentLoadFunction = jint (*)(JavaVM*, const char*, void*); 40 using AgentUnloadFunction = jint (*)(JavaVM*); 66 JavaVM* vm, in Load() 97 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() 116 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() 123 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() 127 extern "C" JNIEXPORT void JNICALL Agent_OnUnload(JavaVM* jvm) { in Agent_OnUnload()
|
/art/tools/jvmti-agents/wrapagentproperties/ |
D | wrapagentproperties.cc | 40 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/ |
D | dump-jvmti.cc | 47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 91 static jint AgentStart(JavaVM* vm, in AgentStart() 108 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() 113 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
|
/art/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 92 static jint AgentStart(JavaVM* vm, char* options, [[maybe_unused]] void* reserved) { in AgentStart() 110 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() 115 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
|
/art/test/900-hello-plugin/ |
D | load_unload.cc | 54 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, in Agent_OnLoad() 70 extern "C" JNIEXPORT void JNICALL Agent_OnUnload([[maybe_unused]] JavaVM* vm) { in Agent_OnUnload()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 38 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/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 90 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti() 118 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad() 124 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach()
|
/art/tools/jvmti-agents/list-extensions/ |
D | list-extensions.cc | 85 jint SetupJvmtiEnv(JavaVM* vm) { in SetupJvmtiEnv() 150 jint AgentStart(JavaVM* vm, [[maybe_unused]] char* options, [[maybe_unused]] void* reserved) { in AgentStart() 161 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() 166 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
|
/art/runtime/ |
D | scoped_thread_state_change.h | 116 explicit ScopedObjectAccessAlreadyRunnable(JavaVM* vm) in ScopedObjectAccessAlreadyRunnable() 159 explicit ScopedObjectAccessUnchecked(JavaVM* vm) ALWAYS_INLINE in ScopedObjectAccessUnchecked() 188 explicit ScopedObjectAccess(JavaVM* vm) SHARED_LOCK_FUNCTION(Locks::mutator_lock_) in ScopedObjectAccess()
|
D | scoped_thread_state_change.cc | 31 static_assert(std::is_base_of<JavaVM, JavaVMExt>::value, "JavaVMExt does not extend JavaVM");
|
/art/test/909-attach-agent/ |
D | attach.h | 25 jint OnAttach(JavaVM* vm, char* options, void* reserved);
|
/art/test/993-breakpoints-non-debuggable/ |
D | onload.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
D | onload.cc | 70 jint OnLoad(JavaVM* vm, [[maybe_unused]] char* options, [[maybe_unused]] void* reserved) { in OnLoad()
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
/art/test/901-hello-ti-agent/ |
D | basics.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
/art/test/936-search-onload/ |
D | search_onload.h | 25 jint OnLoad(JavaVM* vm, char* options, void* reserved);
|
D | search_onload.cc | 36 jint OnLoad(JavaVM* vm, in OnLoad()
|
/art/benchmark/ |
D | jni_loader.cc | 21 jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 40 static JavaVM* java_vm = nullptr; 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 225 static jint AgentStart(JavaVM* vm, char* options, bool is_onload) { in AgentStart() 261 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, in Agent_OnAttach() 268 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, in Agent_OnLoad()
|
/art/runtime/ti/ |
D | agent.h | 89 using AgentOnLoadFunction = jint (*)(JavaVM*, const char*, void*); 90 using AgentOnUnloadFunction = void (*)(JavaVM*);
|
/art/runtime/jni/ |
D | java_vm_ext.cc | 234 void UnloadBootNativeLibraries(JavaVM* vm) const NO_THREAD_SAFETY_ANALYSIS { in UnloadBootNativeLibraries() 379 static void UnloadLibraries(JavaVM* vm, const std::vector<SharedLibrary*>& libraries) { in UnloadLibraries() 380 using JNI_OnUnloadFn = void(*)(JavaVM*, void*); in UnloadLibraries() 400 static jint DestroyJavaVM(JavaVM* vm) { in DestroyJavaVM() 417 static jint AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThread() 421 static jint AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args) { in AttachCurrentThreadAsDaemon() 425 static jint DetachCurrentThread(JavaVM* vm) { in DetachCurrentThread() 435 static jint GetEnv(JavaVM* vm, void** env, jint version) { in GetEnv() 449 …static jint AttachCurrentThreadInternal(JavaVM* vm, JNIEnv** p_env, void* raw_args, bool as_daemon… in AttachCurrentThreadInternal() 1115 using JNI_OnLoadFn = int(*)(JavaVM*, void*); in LoadNativeLibrary() [all …]
|
/art/test/136-daemon-jni-shutdown/ |
D | daemon_jni_shutdown.cc | 61 JavaVM* vm = down_cast<JNIEnvExt*>(env)->GetVm(); in Java_Main_destroyJavaVMAndExit()
|
/art/test/1941-dispose-stress/ |
D | dispose_stress.cc | 45 JavaVM* vm = nullptr; in Java_art_Test1941_AllocEnv()
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | ti_alloc_sample.cc | 357 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 410 static jint AgentStart(JavaVM* vm, char* options, [[maybe_unused]] void* reserved) { in AgentStart() 449 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach() 454 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
|