< prev index next >

src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceId.inline.hpp

Print this page




  79     SET_LEAKP_USED_THIS_EPOCH(klass);
  80     assert(LEAKP_USED_THIS_EPOCH(klass), "invariant");
  81   }
  82   SET_METHOD_AND_CLASS_USED_THIS_EPOCH(klass);
  83   assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
  84   return (METHOD_ID(klass, method));
  85 }
  86 
  87 inline traceid JfrTraceId::use(const ModuleEntry* module, bool leakp /* false */) {
  88   assert(module != NULL, "invariant");
  89   return set_used_and_get_shifted(module, leakp);
  90 }
  91 
  92 inline traceid JfrTraceId::use(const PackageEntry* package, bool leakp /* false */) {
  93   assert(package != NULL, "invariant");
  94   return set_used_and_get_shifted(package, leakp);
  95 }
  96 
  97 inline traceid JfrTraceId::use(const ClassLoaderData* cld, bool leakp /* false */) {
  98   assert(cld != NULL, "invariant");
  99   return cld->is_unsafe_anonymous() ? 0 : set_used_and_get_shifted(cld, leakp);
 100 }
 101 
 102 inline bool JfrTraceId::in_visible_set(const Klass* klass) {
 103   assert(klass != NULL, "invariant");
 104   assert(((JavaThread*)Thread::current())->thread_state() == _thread_in_vm, "invariant");
 105   return (IS_JDK_JFR_EVENT_SUBKLASS(klass) && !klass->is_abstract()) || IS_EVENT_HOST_KLASS(klass);
 106 }
 107 
 108 inline bool JfrTraceId::is_jdk_jfr_event(const Klass* k) {
 109   assert(k != NULL, "invariant");
 110   return IS_JDK_JFR_EVENT_KLASS(k);
 111 }
 112 
 113 inline void JfrTraceId::tag_as_jdk_jfr_event(const Klass* klass) {
 114   assert(klass != NULL, "invariant");
 115   SET_TAG(klass, JDK_JFR_EVENT_KLASS);
 116   assert(IS_JDK_JFR_EVENT_KLASS(klass), "invariant");
 117 }
 118 
 119 inline bool JfrTraceId::is_jdk_jfr_event_sub(const Klass* k) {




  79     SET_LEAKP_USED_THIS_EPOCH(klass);
  80     assert(LEAKP_USED_THIS_EPOCH(klass), "invariant");
  81   }
  82   SET_METHOD_AND_CLASS_USED_THIS_EPOCH(klass);
  83   assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant");
  84   return (METHOD_ID(klass, method));
  85 }
  86 
  87 inline traceid JfrTraceId::use(const ModuleEntry* module, bool leakp /* false */) {
  88   assert(module != NULL, "invariant");
  89   return set_used_and_get_shifted(module, leakp);
  90 }
  91 
  92 inline traceid JfrTraceId::use(const PackageEntry* package, bool leakp /* false */) {
  93   assert(package != NULL, "invariant");
  94   return set_used_and_get_shifted(package, leakp);
  95 }
  96 
  97 inline traceid JfrTraceId::use(const ClassLoaderData* cld, bool leakp /* false */) {
  98   assert(cld != NULL, "invariant");
  99   return cld->is_shortlived() ? 0 : set_used_and_get_shifted(cld, leakp);
 100 }
 101 
 102 inline bool JfrTraceId::in_visible_set(const Klass* klass) {
 103   assert(klass != NULL, "invariant");
 104   assert(((JavaThread*)Thread::current())->thread_state() == _thread_in_vm, "invariant");
 105   return (IS_JDK_JFR_EVENT_SUBKLASS(klass) && !klass->is_abstract()) || IS_EVENT_HOST_KLASS(klass);
 106 }
 107 
 108 inline bool JfrTraceId::is_jdk_jfr_event(const Klass* k) {
 109   assert(k != NULL, "invariant");
 110   return IS_JDK_JFR_EVENT_KLASS(k);
 111 }
 112 
 113 inline void JfrTraceId::tag_as_jdk_jfr_event(const Klass* klass) {
 114   assert(klass != NULL, "invariant");
 115   SET_TAG(klass, JDK_JFR_EVENT_KLASS);
 116   assert(IS_JDK_JFR_EVENT_KLASS(klass), "invariant");
 117 }
 118 
 119 inline bool JfrTraceId::is_jdk_jfr_event_sub(const Klass* k) {


< prev index next >