changeset 55628:7a0d1616851e

8227277: HeapInspection::find_instances_at_safepoint walks dead objects Reviewed-by: dholmes, kbarrett, tschatzl, coleenp
author eosterlund
date Tue, 09 Jul 2019 16:39:37 +0200
parents 9c1885fb2a42
children 29e522153769
files src/hotspot/share/memory/heapInspection.cpp
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/memory/heapInspection.cpp	Tue Jul 09 08:05:38 2019 -0700
+++ b/src/hotspot/share/memory/heapInspection.cpp	Tue Jul 09 16:39:37 2019 +0200
@@ -792,8 +792,5 @@
 
   // Iterate over objects in the heap
   FindInstanceClosure fic(k, result);
-  // If this operation encounters a bad object when using CMS,
-  // consider using safe_object_iterate() which avoids metadata
-  // objects that may contain bad references.
-  Universe::heap()->object_iterate(&fic);
+  Universe::heap()->safe_object_iterate(&fic);
 }