comparison src/share/vm/code/nmethod.cpp @ 1784:ac4f710073ed

6982921: assert(_entry_bci != InvocationEntryBci) failed: wrong kind of nmethod Summary: Assertion fails during print compilation because nmethod::print_on() calls osr_entry_bci() without checking that the method is an osr method. The fix adds an appropriate check. Reviewed-by: never, twisti
author iveresov
date Tue, 07 Sep 2010 14:16:50 -0700
parents d5d065957597
children a222fcfba398
comparison
equal deleted inserted replaced
1783:d5d065957597 1784:ac4f710073ed
969 void nmethod::print_on(outputStream* st, const char* title) const { 969 void nmethod::print_on(outputStream* st, const char* title) const {
970 if (st != NULL) { 970 if (st != NULL) {
971 ttyLocker ttyl; 971 ttyLocker ttyl;
972 print_compilation(st, /*method_name*/NULL, title, 972 print_compilation(st, /*method_name*/NULL, title,
973 method(), /*is_blocking*/false, 973 method(), /*is_blocking*/false,
974 compile_id(), osr_entry_bci(), comp_level()); 974 compile_id(),
975 is_osr_method() ? osr_entry_bci() : InvocationEntryBci,
976 comp_level());
975 if (WizardMode) st->print(" (" INTPTR_FORMAT ")", this); 977 if (WizardMode) st->print(" (" INTPTR_FORMAT ")", this);
976 } 978 }
977 } 979 }
978 980
979 981