hotspot/src/share/vm/oops/instanceKlass.inline.hpp
changeset 30151 c7cdaa576875
parent 30150 d9c940aa42ef
child 30880 efe35e08179f
--- a/hotspot/src/share/vm/oops/instanceKlass.inline.hpp	Thu Apr 02 10:04:27 2015 +0200
+++ b/hotspot/src/share/vm/oops/instanceKlass.inline.hpp	Thu Apr 02 10:22:13 2015 +0200
@@ -152,7 +152,7 @@
 template <bool nv, class OopClosureType>
 INLINE int InstanceKlass::oop_oop_iterate(oop obj, OopClosureType* closure) {
   if (Devirtualizer<nv>::do_metadata(closure)) {
-    Devirtualizer<nv>::do_klass(closure, obj->klass());
+    Devirtualizer<nv>::do_klass(closure, this);
   }
 
   oop_oop_iterate_oop_maps<nv>(obj, closure);
@@ -176,7 +176,7 @@
 INLINE int InstanceKlass::oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr) {
   if (Devirtualizer<nv>::do_metadata(closure)) {
     if (mr.contains(obj)) {
-      Devirtualizer<nv>::do_klass(closure, obj->klass());
+      Devirtualizer<nv>::do_klass(closure, this);
     }
   }