--- a/src/hotspot/share/oops/method.hpp Fri Feb 22 11:07:18 2019 -0800
+++ b/src/hotspot/share/oops/method.hpp Fri Feb 22 13:56:08 2019 -0500
@@ -974,6 +974,15 @@
// Deallocation function for redefine classes or if an error occurs
void deallocate_contents(ClassLoaderData* loader_data);
+ Method* get_new_method() const {
+ InstanceKlass* holder = method_holder();
+ Method* new_method = holder->method_with_idnum(orig_method_idnum());
+
+ assert(new_method != NULL, "method_with_idnum() should not be NULL");
+ assert(this != new_method, "sanity check");
+ return new_method;
+ }
+
// Printing
#ifndef PRODUCT
void print_on(outputStream* st) const;