< prev index next >

src/share/vm/code/relocInfo.cpp

Print this page

        

*** 127,139 **** initialize_misc(); if (nm == NULL && begin != NULL) { // allow nmethod to be deduced from beginning address CodeBlob* cb = CodeCache::find_blob(begin); ! nm = cb->as_compiled_method_or_null(); } ! assert(nm != NULL, "must be able to deduce nmethod from other arguments"); _code = nm; _current = nm->relocation_begin() - 1; _end = nm->relocation_end(); _addr = nm->content_begin(); --- 127,139 ---- initialize_misc(); if (nm == NULL && begin != NULL) { // allow nmethod to be deduced from beginning address CodeBlob* cb = CodeCache::find_blob(begin); ! nm = (cb != NULL) ? cb->as_compiled_method_or_null() : NULL; } ! guarantee(nm != NULL, "must be able to deduce nmethod from other arguments"); _code = nm; _current = nm->relocation_begin() - 1; _end = nm->relocation_end(); _addr = nm->content_begin();
< prev index next >