hotspot/src/share/vm/code/nmethod.cpp
changeset 5403 6b0dd9c75dde
parent 5402 c51fd0c1d005
child 5533 e8d9ff82ec62
equal deleted inserted replaced
5402:c51fd0c1d005 5403:6b0dd9c75dde
  2122   assert(method()->is_oop(), "must be valid");
  2122   assert(method()->is_oop(), "must be valid");
  2123 
  2123 
  2124   ResourceMark rm;
  2124   ResourceMark rm;
  2125 
  2125 
  2126   if (!CodeCache::contains(this)) {
  2126   if (!CodeCache::contains(this)) {
  2127     fatal1("nmethod at " INTPTR_FORMAT " not in zone", this);
  2127     fatal(err_msg("nmethod at " INTPTR_FORMAT " not in zone", this));
  2128   }
  2128   }
  2129 
  2129 
  2130   if(is_native_method() )
  2130   if(is_native_method() )
  2131     return;
  2131     return;
  2132 
  2132 
  2133   nmethod* nm = CodeCache::find_nmethod(verified_entry_point());
  2133   nmethod* nm = CodeCache::find_nmethod(verified_entry_point());
  2134   if (nm != this) {
  2134   if (nm != this) {
  2135     fatal1("findNMethod did not find this nmethod (" INTPTR_FORMAT ")", this);
  2135     fatal(err_msg("findNMethod did not find this nmethod (" INTPTR_FORMAT ")",
       
  2136                   this));
  2136   }
  2137   }
  2137 
  2138 
  2138   for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
  2139   for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
  2139     if (! p->verify(this)) {
  2140     if (! p->verify(this)) {
  2140       tty->print_cr("\t\tin nmethod at " INTPTR_FORMAT " (pcs)", this);
  2141       tty->print_cr("\t\tin nmethod at " INTPTR_FORMAT " (pcs)", this);