src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleWriter.cpp
branchJEP-349-branch
changeset 58525 2a49d43aaa6a
parent 58157 9dca61a7df19
equal deleted inserted replaced
58498:5a2761a6a564 58525:2a49d43aaa6a
   353   return 1;
   353   return 1;
   354 }
   354 }
   355 
   355 
   356 static traceid get_gc_root_description_info_id(const Edge& edge, traceid id) {
   356 static traceid get_gc_root_description_info_id(const Edge& edge, traceid id) {
   357   assert(edge.is_root(), "invariant");
   357   assert(edge.is_root(), "invariant");
   358   if (EdgeUtils::is_leak_edge(edge)) {
       
   359     return 0;
       
   360   }
       
   361 
       
   362   if (root_infos == NULL) {
   358   if (root_infos == NULL) {
   363     root_infos = new RootDescriptionInfo();
   359     root_infos = new RootDescriptionInfo();
   364   }
   360   }
   365   assert(root_infos != NULL, "invariant");
   361   assert(root_infos != NULL, "invariant");
   366   ObjectSampleRootDescriptionInfo* const oodi = new ObjectSampleRootDescriptionInfo();
   362   ObjectSampleRootDescriptionInfo* const oodi = new ObjectSampleRootDescriptionInfo();