equal
deleted
inserted
replaced
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(); |