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

Method fromJavaThread

src/vmStructs.h:380–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378 }
379
380 static VMThread* fromJavaThread(JNIEnv* env, jthread thread) {
381 return (VMThread*)(uintptr_t)env->GetLongField(thread, _eetop);
382 }
383
384 static jlong javaThreadId(JNIEnv* env, jthread thread) {
385 return env->GetLongField(thread, _tid);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected