hotspot/src/share/vm/memory/iterator.hpp
changeset 3696 9e5d9b5e1049
parent 3690 dba50b88bd50
child 3912 3aaaaad1ccb0
child 3795 6227ff014cfe
--- a/hotspot/src/share/vm/memory/iterator.hpp	Mon Aug 31 05:27:29 2009 -0700
+++ b/hotspot/src/share/vm/memory/iterator.hpp	Wed Sep 02 00:04:29 2009 -0700
@@ -25,6 +25,7 @@
 // The following classes are C++ `closures` for iterating over objects, roots and spaces
 
 class ReferenceProcessor;
+class DataLayout;
 
 // Closure provides abortability.
 
@@ -62,6 +63,12 @@
 
   virtual void remember_klass(Klass* k) { /* do nothing */ }
 
+  // In support of post-processing of weak references in
+  // ProfileData (MethodDataOop) objects; see, for example,
+  // VirtualCallData::oop_iterate().
+  virtual const bool should_remember_mdo() const { return false; }
+  virtual void remember_mdo(DataLayout* v) { /* do nothing */ }
+
   // If "true", invoke on nmethods (when scanning compiled frames).
   virtual const bool do_nmethods() const { return false; }