src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp
changeset 58863 c16ac7a2eba4
parent 58132 caa25ab47aca
child 59252 623722a6aeb9
--- 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);
   }