comparison src/share/vm/code/nmethod.cpp @ 1490:f03d0a26bf83

6888954: argument formatting for assert() and friends Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author jcoomes
date Thu, 22 Apr 2010 13:23:15 -0700
parents cff162798819
children bfe29ec02863
comparison
equal deleted inserted replaced
1489:cff162798819 1490:f03d0a26bf83
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);