-
Notifications
You must be signed in to change notification settings - Fork 775
Add JIT thread start/end to JFR #22711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gengchen Tuo <[email protected]>
Signed-off-by: Gengchen Tuo <[email protected]>
|
@tajila FYI |
| j9tty_printf(PORTLIB, "\n!!! thread end %p\n", currentThread); | ||
| #endif /* defined(DEBUG) */ | ||
|
|
||
| internalAcquireVMAccess(currentThread); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thallium do you still have the stack trace for the failure you saw when you tried this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is that a JIT thread is hanging, there are more details in our chat history. The stacktrace is:
#0 0x00007ffff7c98d71 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff7c9b7ed in pthread_cond_wait () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff7e8901b in monitor_wait_original (self=0x7ffff00f48b0, monitor=monitor@entry=0x7ffff00e6f38, millis=millis@entry=0, nanos=nanos@entry=0, interruptible=interruptible@entry=0,
callbackFunction=callbackFunction@entry=0x0, userData=0x0) at ../../../../../../omr/thread/common/omrthread.c:4777
#3 0x00007ffff7e8c508 in monitor_wait (userData=0x0, callbackFunction=0x0, interruptible=0, nanos=0, millis=0, monitor=0x7ffff00e6f38) at ../../../../../../omr/thread/common/omrthread.c:4616
#4 omrthread_monitor_wait (monitor=0x7ffff00e6f38) at ../../../../../../omr/thread/common/omrthread.c:4436
#5 0x00007ffff78905cc in internalAcquireVMAccessNoMutexWithMask (vmThread=0x26100, haltMask=2203653) at ../../../../../openj9/runtime/vm/VMAccess.cpp:388
#6 0x00007ffff78903c1 in VM_VMAccess::inlineAcquireVMAccessExhaustiveCheck (vmThread=<optimized out>) at ../../../../../openj9/runtime/oti/VMAccess.hpp:128
#7 internalAcquireVMAccess (currentThread=0x26100) at ../../../../../openj9/runtime/vm/VMAccess.cpp:72
#8 internalAcquireVMAccess (currentThread=0x26100) at ../../../../../openj9/runtime/vm/VMAccess.cpp:70
#9 0x00007ffff78a6a23 in jfrThreadEndSystemThread (hook=<optimized out>, eventNum=<optimized out>, eventData=<optimized out>, userData=<optimized out>) at ../../../../../openj9/runtime/vm/jfr.cpp:578
#10 0x00007ffff7e9ca22 in J9HookDispatch (hookInterface=0x7ffff0011588, taggedEventNum=<optimized out>, eventData=0x7fffec183ac0) at ../../../../../../../omr/util/hookable/hookable.cpp:237
#11 0x00007ffff5d84a73 in TR::CompilationInfoPerThread::processEntries (this=this@entry=0x7ffff442baf0) at ../../../../../openj9/runtime/compiler/control/CompilationThread.cpp:4448
#12 0x00007ffff5d84f72 in TR::CompilationInfoPerThread::run (this=this@entry=0x7ffff442baf0) at ../../../../../openj9/runtime/compiler/control/CompilationThread.cpp:4101
#13 0x00007ffff5d85026 in protectedCompilationThreadProc (compInfoPT=compInfoPT@entry=0x7ffff442baf0) at ../../../../../openj9/runtime/compiler/control/CompilationThread.cpp:4035
#14 0x00007ffff7ac99fd in omrsig_protect (portLibrary=0x7ffff7ee8420 <j9portLibrary>, fn=0x7ffff5d84fa0 <protectedCompilationThreadProc(J9PortLibrary*, TR::CompilationInfoPerThread*)>,
fn_arg=0x7ffff442baf0, handler=0x7ffff7840c90 <structuredSignalHandler>, handler_arg=0x26100, flags=506, result=0x7fffec183d78) at ../../../../../../omr/port/unix/omrsignal.c:425
#15 0x00007ffff5d853e5 in compilationThreadProc (entryarg=0x7ffff442baf0) at ../../../../../openj9/runtime/compiler/control/CompilationThread.cpp:3940
#16 0x00007ffff7e8cac4 in thread_wrapper (arg=0x7ffff00f48b0) at ../../../../../../omr/thread/common/omrthread.c:1749
#17 0x00007ffff7c9caa4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#18 0x00007ffff7d29c3c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No description provided.