src/hotspot/share/memory/heapInspection.cpp
changeset 55629 29e522153769
parent 55628 7a0d1616851e
child 58679 9c3209ff7550
child 58722 cba8afa5cfed
--- a/src/hotspot/share/memory/heapInspection.cpp	Tue Jul 09 16:39:37 2019 +0200
+++ b/src/hotspot/share/memory/heapInspection.cpp	Tue Jul 09 16:39:41 2019 +0200
@@ -123,7 +123,7 @@
 
 KlassInfoEntry* KlassInfoBucket::lookup(Klass* const k) {
   // Can happen if k is an archived class that we haven't loaded yet.
-  if (k->java_mirror() == NULL) {
+  if (k->java_mirror_no_keepalive() == NULL) {
     return NULL;
   }
 
@@ -719,7 +719,7 @@
   ResourceMark rm;
 
   RecordInstanceClosure ric(cit, filter);
-  Universe::heap()->object_iterate(&ric);
+  Universe::heap()->safe_object_iterate(&ric);
   return ric.missed_count();
 }