equal
deleted
inserted
replaced
106 inline traceid JfrTraceId::use(const ClassLoaderData* cld) { |
106 inline traceid JfrTraceId::use(const ClassLoaderData* cld) { |
107 assert(cld != NULL, "invariant"); |
107 assert(cld != NULL, "invariant"); |
108 return cld->is_unsafe_anonymous() ? 0 : set_used_and_get(cld); |
108 return cld->is_unsafe_anonymous() ? 0 : set_used_and_get(cld); |
109 } |
109 } |
110 |
110 |
111 inline void JfrTraceId::set_leakp(const Klass* klass, const Method* method) { |
111 inline void JfrTraceId::set_leakp(const Method* method) { |
|
112 assert(method != NULL, "invariant"); |
|
113 const Klass* const klass = method->method_holder(); |
|
114 assert(klass != NULL, "invariant"); |
112 assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant"); |
115 assert(METHOD_AND_CLASS_USED_THIS_EPOCH(klass), "invariant"); |
113 assert(METHOD_FLAG_USED_THIS_EPOCH(method), "invariant"); |
116 assert(METHOD_FLAG_USED_THIS_EPOCH(method), "invariant"); |
114 SET_LEAKP(klass); |
117 SET_LEAKP(klass); |
115 SET_METHOD_LEAKP(method); |
118 SET_METHOD_LEAKP(method); |
116 } |
119 } |