src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp
branchJEP-349-branch
changeset 57988 6fa0074508ef
parent 57983 a57907813a83
child 57990 b08487c6eb4d
equal deleted inserted replaced
57987:23e3cd901cb6 57988:6fa0074508ef
   306 
   306 
   307 void ObjectSampleCheckpoint::tag(const JfrStackFrame& frame, traceid method_id) {
   307 void ObjectSampleCheckpoint::tag(const JfrStackFrame& frame, traceid method_id) {
   308   if (is_processed(method_id) || is_klass_unloaded(method_id)) {
   308   if (is_processed(method_id) || is_klass_unloaded(method_id)) {
   309     return;
   309     return;
   310   }
   310   }
   311   assert(frame._method != NULL, "invariant");
   311   JfrTraceId::set_leakp(frame._method);
   312   JfrTraceId::set_leakp(frame._method->method_holder(), frame._method);
       
   313 }
   312 }
   314 
   313 
   315 void ObjectSampleCheckpoint::write_stacktrace(const JfrStackTrace* trace, JfrCheckpointWriter& writer) {
   314 void ObjectSampleCheckpoint::write_stacktrace(const JfrStackTrace* trace, JfrCheckpointWriter& writer) {
   316   assert(trace != NULL, "invariant");
   315   assert(trace != NULL, "invariant");
   317   // JfrStackTrace
   316   // JfrStackTrace