We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ca55b commit 29f300eCopy full SHA for 29f300e
src/hotspot/share/jfr/recorder/checkpoint/types/jfrType.cpp
@@ -101,7 +101,7 @@ void JfrCheckpointThreadClosure::do_thread(Thread* t) {
101
if (t->is_Java_thread()) {
102
JavaThread* const jt = (JavaThread*)t;
103
_writer.write(jt->name());
104
- _writer.write(java_lang_Thread::thread_id(jt->threadObj()));
+ _writer.write(jt->threadObj() != NULL ? java_lang_Thread::thread_id(jt->threadObj()) : 0);
105
_writer.write(JfrThreadGroup::thread_group_id(jt, _curthread));
106
// since we are iterating threads during a safepoint, also issue notification
107
JfrJavaEventWriter::notify(jt);
0 commit comments