hotspot/src/share/vm/oops/method.hpp
changeset 13736 5b15a8f57979
parent 13728 882756847a04
child 13891 35dabd293e56
equal deleted inserted replaced
13735:c6d01e4bc0ac 13736:5b15a8f57979
   166                             int exception_table_length,
   166                             int exception_table_length,
   167                             int checked_exceptions_length,
   167                             int checked_exceptions_length,
   168                             TRAPS);
   168                             TRAPS);
   169 
   169 
   170   Method() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
   170   Method() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
       
   171 
       
   172   // The Method vtable is restored by this call when the Method is in the
       
   173   // shared archive.  See patch_klass_vtables() in metaspaceShared.cpp for
       
   174   // all the gory details.  SA, dtrace and pstack helpers distinguish metadata
       
   175   // by their vtable.
       
   176   void restore_vtable() { guarantee(is_method(), "vtable restored by this call"); }
   171   bool is_method() const volatile { return true; }
   177   bool is_method() const volatile { return true; }
   172 
   178 
   173   // accessors for instance variables
   179   // accessors for instance variables
       
   180 
   174   ConstMethod* constMethod() const             { return _constMethod; }
   181   ConstMethod* constMethod() const             { return _constMethod; }
   175   void set_constMethod(ConstMethod* xconst)    { _constMethod = xconst; }
   182   void set_constMethod(ConstMethod* xconst)    { _constMethod = xconst; }
   176 
   183 
   177 
   184 
   178   static address make_adapters(methodHandle mh, TRAPS);
   185   static address make_adapters(methodHandle mh, TRAPS);