diff -r 6598f2825b1f -r 9c150f2b1fea src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp --- a/src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp Thu Aug 29 03:29:45 2019 +0200 +++ b/src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp Thu Aug 29 12:53:05 2019 +0200 @@ -110,6 +110,9 @@ } const JfrThreadLocal* const tl = thread->jfr_thread_local(); assert(tl != NULL, "invariant"); + if (tl->is_excluded()) { + return 0; + } if (!tl->has_thread_checkpoint()) { JfrCheckpointManager::create_thread_checkpoint(thread); }