src/hotspot/share/jfr/leakprofiler/sampling/objectSampler.cpp
changeset 58863 c16ac7a2eba4
parent 58132 caa25ab47aca
child 59252 623722a6aeb9
equal deleted inserted replaced
58861:2c3cc4b01880 58863:c16ac7a2eba4
   108   if (thread->threadObj() == NULL) {
   108   if (thread->threadObj() == NULL) {
   109     return 0;
   109     return 0;
   110   }
   110   }
   111   const JfrThreadLocal* const tl = thread->jfr_thread_local();
   111   const JfrThreadLocal* const tl = thread->jfr_thread_local();
   112   assert(tl != NULL, "invariant");
   112   assert(tl != NULL, "invariant");
       
   113   if (tl->is_excluded()) {
       
   114     return 0;
       
   115   }
   113   if (!tl->has_thread_blob()) {
   116   if (!tl->has_thread_blob()) {
   114     JfrCheckpointManager::create_thread_blob(thread);
   117     JfrCheckpointManager::create_thread_blob(thread);
   115   }
   118   }
   116   assert(tl->has_thread_blob(), "invariant");
   119   assert(tl->has_thread_blob(), "invariant");
   117   return tl->thread_id();
   120   return tl->thread_id();