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

Method current

src/vmStructs.cpp:630–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630VMThread* VMThread::current() {
631 return _tls_index >= 0 ? (VMThread*)pthread_getspecific((pthread_key_t)_tls_index) : NULL;
632}
633
634int VMThread::nativeThreadId(JNIEnv* jni, jthread thread) {
635 if (_has_native_thread_id) {

Callers 6

allocateMethod · 0.80
testRandomReadMethod · 0.80
runMethod · 0.80
generateMethod · 0.80
dispatchMethod · 0.80
mainMethod · 0.80

Calls

no outgoing calls

Tested by 6

allocateMethod · 0.64
testRandomReadMethod · 0.64
runMethod · 0.64
generateMethod · 0.64
dispatchMethod · 0.64
mainMethod · 0.64