hotspot/src/share/vm/oops/methodData.hpp
changeset 46746 ea379ebb9447
parent 46625 edefffab74e2
--- a/hotspot/src/share/vm/oops/methodData.hpp	Sat Jul 22 15:54:27 2017 -0400
+++ b/hotspot/src/share/vm/oops/methodData.hpp	Wed Aug 02 18:06:38 2017 -0700
@@ -2154,6 +2154,9 @@
   friend class ProfileData;
   friend class TypeEntriesAtCall;
 
+  // If you add a new field that points to any metaspace object, you
+  // must add this field to MethodData::metaspace_pointers_do().
+
   // Back pointer to the Method*
   Method* _method;
 
@@ -2591,6 +2594,9 @@
     return byte_offset_of(MethodData, _parameters_type_data_di);
   }
 
+  virtual void metaspace_pointers_do(MetaspaceClosure* iter);
+  virtual MetaspaceObj::Type type() const { return MethodDataType; }
+
   // Deallocation support - no pointer fields to deallocate
   void deallocate_contents(ClassLoaderData* loader_data) {}