diff src/share/vm/oops/methodOop.cpp @ 6145:e2fe93124108

7174928: JSR 292: unresolved invokedynamic call sites deopt and osr infinitely Reviewed-by: kvn
author twisti
date Wed, 13 Jun 2012 11:36:03 -0700
parents 0382d2b469b2
children eba1d5bce9e8
line wrap: on
line diff
--- a/src/share/vm/oops/methodOop.cpp	Tue Jun 12 16:23:31 2012 -0700
+++ b/src/share/vm/oops/methodOop.cpp	Wed Jun 13 11:36:03 2012 -0700
@@ -70,11 +70,11 @@
   return _adapter->get_c2i_unverified_entry();
 }
 
-char* methodOopDesc::name_and_sig_as_C_string() {
+char* methodOopDesc::name_and_sig_as_C_string() const {
   return name_and_sig_as_C_string(Klass::cast(constants()->pool_holder()), name(), signature());
 }
 
-char* methodOopDesc::name_and_sig_as_C_string(char* buf, int size) {
+char* methodOopDesc::name_and_sig_as_C_string(char* buf, int size) const {
   return name_and_sig_as_C_string(Klass::cast(constants()->pool_holder()), name(), signature(), buf, size);
 }
 
@@ -177,7 +177,8 @@
 
 
 int methodOopDesc::bci_from(address bcp) const {
-  assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), "bcp doesn't belong to this method");
+  assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(),
+         err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string()));
   return bcp - code_base();
 }