| 632 | } |
| 633 | |
| 634 | int 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 | |
| 642 | int VMThread::osThreadId() { |
| 643 | const char* osthread = *(const char**) at(_thread_osthread_offset); |
nothing calls this directly
no test coverage detected