MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / attachThread

Method attachThread

src/vmEntry.h:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 static JNIEnv* attachThread(const char* name) {
143 JNIEnv* jni;
144 JavaVMAttachArgs args = {JNI_VERSION_1_6, (char*)name, NULL};
145 return _vm->AttachCurrentThreadAsDaemon((void**)&jni, &args) == 0 ? jni : NULL;
146 }
147
148 static void detachThread() {
149 _vm->DetachCurrentThread();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected