equal
deleted
inserted
replaced
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 } |
|