--- a/hotspot/src/share/vm/memory/iterator.cpp Fri Aug 14 13:44:15 2009 -0700
+++ b/hotspot/src/share/vm/memory/iterator.cpp Mon Aug 24 10:36:31 2009 -0700
@@ -25,6 +25,10 @@
# include "incls/_precompiled.incl"
# include "incls/_iterator.cpp.incl"
+#ifdef ASSERT
+bool OopClosure::_must_remember_klasses = false;
+#endif
+
void ObjectToOopClosure::do_object(oop obj) {
obj->oop_iterate(_cl);
}
@@ -32,3 +36,13 @@
void VoidClosure::do_void() {
ShouldNotCallThis();
}
+
+#ifdef ASSERT
+bool OopClosure::must_remember_klasses() {
+ return _must_remember_klasses;
+}
+void OopClosure::set_must_remember_klasses(bool v) {
+ _must_remember_klasses = v;
+}
+#endif
+