diff -r 2c3cc4b01880 -r c16ac7a2eba4 src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp --- a/src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp Wed Oct 30 16:14:56 2019 +0100 +++ b/src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp Wed Oct 30 19:43:52 2019 +0100 @@ -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_blob()) { JfrCheckpointManager::create_thread_blob(thread); }