src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp
branchJEP-349-branch
changeset 57934 9c150f2b1fea
parent 57902 f6502e486572
child 57983 a57907813a83
--- 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);
   }