--- a/hotspot/src/share/vm/oops/objArrayKlass.hpp Sat Jul 22 15:54:27 2017 -0400
+++ b/hotspot/src/share/vm/oops/objArrayKlass.hpp Wed Aug 02 18:06:38 2017 -0700
@@ -35,6 +35,8 @@
friend class VMStructs;
friend class JVMCIVMStructs;
private:
+ // If you add a new field that points to any metaspace object, you
+ // must add this field to ObjArrayKlass::metaspace_pointers_do().
Klass* _element_klass; // The klass of the elements of this array type
Klass* _bottom_klass; // The one-dimensional type (InstanceKlass or TypeArrayKlass)
@@ -80,6 +82,8 @@
// Compute protection domain
oop protection_domain() const { return bottom_klass()->protection_domain(); }
+ virtual void metaspace_pointers_do(MetaspaceClosure* iter);
+
private:
// Either oop or narrowOop depending on UseCompressedOops.
// must be called from within ObjArrayKlass.cpp