equal
deleted
inserted
replaced
717 |
717 |
718 size_t HeapInspection::populate_table(KlassInfoTable* cit, BoolObjectClosure *filter) { |
718 size_t HeapInspection::populate_table(KlassInfoTable* cit, BoolObjectClosure *filter) { |
719 ResourceMark rm; |
719 ResourceMark rm; |
720 |
720 |
721 RecordInstanceClosure ric(cit, filter); |
721 RecordInstanceClosure ric(cit, filter); |
722 Universe::heap()->safe_object_iterate(&ric); |
722 Universe::heap()->object_iterate(&ric); |
723 return ric.missed_count(); |
723 return ric.missed_count(); |
724 } |
724 } |
725 |
725 |
726 void HeapInspection::heap_inspection(outputStream* st) { |
726 void HeapInspection::heap_inspection(outputStream* st) { |
727 ResourceMark rm; |
727 ResourceMark rm; |
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 Universe::heap()->safe_object_iterate(&fic); |
795 Universe::heap()->object_iterate(&fic); |
796 } |
796 } |