< prev index next >

src/hotspot/share/code/nmethod.cpp

Print this page
rev 48535 : [mq]: 8194990

*** 953,962 **** --- 953,963 ---- case relocInfo::virtual_call_type: case relocInfo::opt_virtual_call_type: { CompiledIC *ic = CompiledIC_at(&iter); // Ok, to lookup references to zombies here CodeBlob *cb = CodeCache::find_blob_unsafe(ic->ic_destination()); + assert(cb != NULL, "destination not in CodeBlob?"); nmethod* nm = cb->as_nmethod_or_null(); if( nm != NULL ) { // Verify that inline caches pointing to both zombie and not_entrant methods are clean if (!nm->is_in_use() || (nm->method()->code() != nm)) { assert(ic->is_clean(), "IC should be clean");
*** 965,974 **** --- 966,976 ---- break; } case relocInfo::static_call_type: { CompiledStaticCall *csc = compiledStaticCall_at(iter.reloc()); CodeBlob *cb = CodeCache::find_blob_unsafe(csc->destination()); + assert(cb != NULL, "destination not in CodeBlob?"); nmethod* nm = cb->as_nmethod_or_null(); if( nm != NULL ) { // Verify that inline caches pointing to both zombie and not_entrant methods are clean if (!nm->is_in_use() || (nm->method()->code() != nm)) { assert(csc->is_clean(), "IC should be clean");
*** 2730,2740 **** } } virtual void verify_resolve_call(address dest) const { CodeBlob* db = CodeCache::find_blob_unsafe(dest); ! assert(!db->is_adapter_blob(), "must use stub!"); } virtual bool is_call_to_interpreted(address dest) const { CodeBlob* cb = CodeCache::find_blob(_call->instruction_address()); return cb->contains(dest); --- 2732,2742 ---- } } virtual void verify_resolve_call(address dest) const { CodeBlob* db = CodeCache::find_blob_unsafe(dest); ! assert(db != NULL && !db->is_adapter_blob(), "must use stub!"); } virtual bool is_call_to_interpreted(address dest) const { CodeBlob* cb = CodeCache::find_blob(_call->instruction_address()); return cb->contains(dest);
< prev index next >