hotspot/src/share/vm/oops/arrayKlass.hpp
changeset 46746 ea379ebb9447
parent 46329 53ccc37bda19
child 47103 a993ec29ec75
--- a/hotspot/src/share/vm/oops/arrayKlass.hpp	Sat Jul 22 15:54:27 2017 -0400
+++ b/hotspot/src/share/vm/oops/arrayKlass.hpp	Wed Aug 02 18:06:38 2017 -0700
@@ -36,6 +36,8 @@
 class ArrayKlass: public Klass {
   friend class VMStructs;
  private:
+  // If you add a new field that points to any metaspace object, you
+  // must add this field to ArrayKlass::metaspace_pointers_do().
   int      _dimension;         // This is n'th-dimensional array.
   Klass* volatile _higher_dimension;  // Refers the (n+1)'th-dimensional array (if present).
   Klass* volatile _lower_dimension;   // Refers the (n-1)'th-dimensional array (if present).
@@ -102,6 +104,8 @@
   // Sizing
   static int static_size(int header_size);
 
+  virtual void metaspace_pointers_do(MetaspaceClosure* iter);
+
 #if INCLUDE_SERVICES
   virtual void collect_statistics(KlassSizeStats *sz) const {
     Klass::collect_statistics(sz);