src/hotspot/share/oops/method.hpp
changeset 53904 9c3fe09f69bc
parent 53432 1ec56532ae0c
child 54042 6dd6f988b4e4
equal deleted inserted replaced
53903:68bbd727dd5f 53904:9c3fe09f69bc
   972   static void sort_methods(Array<Method*>* methods, bool set_idnums = true);
   972   static void sort_methods(Array<Method*>* methods, bool set_idnums = true);
   973 
   973 
   974   // Deallocation function for redefine classes or if an error occurs
   974   // Deallocation function for redefine classes or if an error occurs
   975   void deallocate_contents(ClassLoaderData* loader_data);
   975   void deallocate_contents(ClassLoaderData* loader_data);
   976 
   976 
       
   977   Method* get_new_method() const {
       
   978     InstanceKlass* holder = method_holder();
       
   979     Method* new_method = holder->method_with_idnum(orig_method_idnum());
       
   980 
       
   981     assert(new_method != NULL, "method_with_idnum() should not be NULL");
       
   982     assert(this != new_method, "sanity check");
       
   983     return new_method;
       
   984   }
       
   985 
   977   // Printing
   986   // Printing
   978 #ifndef PRODUCT
   987 #ifndef PRODUCT
   979   void print_on(outputStream* st) const;
   988   void print_on(outputStream* st) const;
   980 #endif
   989 #endif
   981   void print_value_on(outputStream* st) const;
   990   void print_value_on(outputStream* st) const;