1.1 --- a/src/share/vm/oops/method.cpp Thu Feb 13 10:05:03 2014 +0100 1.2 +++ b/src/share/vm/oops/method.cpp Tue Apr 15 17:02:20 2014 -0400 1.3 @@ -905,6 +905,19 @@ 1.4 return adapter->get_c2i_entry(); 1.5 } 1.6 1.7 +void Method::restore_unshareable_info(TRAPS) { 1.8 + // Since restore_unshareable_info can be called more than once for a method, don't 1.9 + // redo any work. If this field is restored, there is nothing to do. 1.10 + if (_from_compiled_entry == NULL) { 1.11 + // restore method's vtable by calling a virtual function 1.12 + restore_vtable(); 1.13 + 1.14 + methodHandle mh(THREAD, this); 1.15 + link_method(mh, CHECK); 1.16 + } 1.17 +} 1.18 + 1.19 + 1.20 // The verified_code_entry() must be called when a invoke is resolved 1.21 // on this method. 1.22