< prev index next >
src/share/vm/oops/method.cpp
Print this page
rev 12514 : [mq]: tmp
*** 1100,1115 ****
}
return adapter->get_c2i_entry();
}
void Method::restore_unshareable_info(TRAPS) {
// Since restore_unshareable_info can be called more than once for a method, don't
// redo any work.
if (adapter() == NULL) {
- // Restore Method's C++ vtable by calling a virtual function
- restore_vtable();
-
methodHandle mh(THREAD, this);
link_method(mh, CHECK);
}
}
--- 1100,1114 ----
}
return adapter->get_c2i_entry();
}
void Method::restore_unshareable_info(TRAPS) {
+ assert(is_method(), "ensure C++ vtable is restored");
+
// Since restore_unshareable_info can be called more than once for a method, don't
// redo any work.
if (adapter() == NULL) {
methodHandle mh(THREAD, this);
link_method(mh, CHECK);
}
}
< prev index next >