hotspot/src/share/vm/memory/iterator.cpp
changeset 3912 3aaaaad1ccb0
parent 3908 24b55ad4c228
parent 3690 dba50b88bd50
child 3913 e049e6b81e11
--- a/hotspot/src/share/vm/memory/iterator.cpp	Fri Sep 18 09:57:47 2009 -0700
+++ b/hotspot/src/share/vm/memory/iterator.cpp	Wed Sep 23 23:56:15 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);
 }
@@ -33,6 +37,16 @@
   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
+
+
 MarkingCodeBlobClosure::MarkScope::MarkScope(bool activate)
   : _active(activate)
 {