--- old/src/hotspot/share/jfr/leakprofiler/checkpoint/eventEmitter.cpp 2020-01-14 13:46:53.721328463 -0800 +++ new/src/hotspot/share/jfr/leakprofiler/checkpoint/eventEmitter.cpp 2020-01-14 13:46:53.437328473 -0800 @@ -116,7 +116,9 @@ traceid gc_root_id = 0; const Edge* edge = NULL; if (SafepointSynchronize::is_at_safepoint()) { - edge = (const Edge*)(sample->object())->mark().to_pointer(); + if (!sample->object()->mark().is_marked()) { + edge = (const Edge*)(sample->object())->mark().to_pointer(); + } } if (edge == NULL) { // In order to dump out a representation of the event