hotspot/src/share/vm/oops/constantPoolKlass.cpp
changeset 8932 a676b28e2093
parent 8883 5569135acca3
parent 8922 dc678ff8de0c
child 9124 f60dee480d49
--- a/hotspot/src/share/vm/oops/constantPoolKlass.cpp	Tue Apr 05 14:12:31 2011 -0700
+++ b/hotspot/src/share/vm/oops/constantPoolKlass.cpp	Wed Apr 06 16:02:53 2011 -0700
@@ -245,13 +245,13 @@
   }
   oop* addr;
   addr = cp->tags_addr();
-  blk->do_oop(addr);
+  if (mr.contains(addr)) blk->do_oop(addr);
   addr = cp->cache_addr();
-  blk->do_oop(addr);
+  if (mr.contains(addr)) blk->do_oop(addr);
   addr = cp->operands_addr();
-  blk->do_oop(addr);
+  if (mr.contains(addr)) blk->do_oop(addr);
   addr = cp->pool_holder_addr();
-  blk->do_oop(addr);
+  if (mr.contains(addr)) blk->do_oop(addr);
   return size;
 }