--- old/src/share/vm/oops/method.hpp 2017-06-29 15:57:50.900941918 -0700 +++ new/src/share/vm/oops/method.hpp 2017-06-29 15:57:50.720934999 -0700 @@ -470,6 +470,9 @@ // clear entry points. Used by sharing code during dump time void unlink_method() NOT_CDS_RETURN; + virtual void metaspace_pointers_do(MetaspaceClosure* iter); + virtual MetaspaceObj::Type type() const { return MethodType; } + // vtable index enum VtableIndexFlag { // Valid vtable indexes are non-negative (>= 0).