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

Method nativeThreadId

src/vmStructs.cpp:634–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634int VMThread::nativeThreadId(JNIEnv* jni, jthread thread) {
635 if (_has_native_thread_id) {
636 VMThread* vm_thread = fromJavaThread(jni, thread);
637 return vm_thread != NULL ? vm_thread->osThreadId() : -1;
638 }
639 return VM::isOpenJ9() ? J9Ext::GetOSThreadID(thread) : -1;
640}
641
642int VMThread::osThreadId() {
643 const char* osthread = *(const char**) at(_thread_osthread_offset);

Callers

nothing calls this directly

Calls 1

osThreadIdMethod · 0.80

Tested by

no test coverage detected