src/hotspot/share/memory/heapInspection.cpp
changeset 55628 7a0d1616851e
parent 54786 ebf733a324d4
child 55629 29e522153769
equal deleted inserted replaced
55627:9c1885fb2a42 55628:7a0d1616851e
   790   // Ensure that the heap is parsable
   790   // Ensure that the heap is parsable
   791   Universe::heap()->ensure_parsability(false);  // no need to retire TALBs
   791   Universe::heap()->ensure_parsability(false);  // no need to retire TALBs
   792 
   792 
   793   // Iterate over objects in the heap
   793   // Iterate over objects in the heap
   794   FindInstanceClosure fic(k, result);
   794   FindInstanceClosure fic(k, result);
   795   // If this operation encounters a bad object when using CMS,
   795   Universe::heap()->safe_object_iterate(&fic);
   796   // consider using safe_object_iterate() which avoids metadata
   796 }
   797   // objects that may contain bad references.
       
   798   Universe::heap()->object_iterate(&fic);
       
   799 }