--- 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;
}