From dc2fdd0a774428e3fe6c39c41740af973c1b3405 Mon Sep 17 00:00:00 2001 From: iveresov Date: Tue, 7 Sep 2010 14:16:50 -0700 Subject: [PATCH] 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 --- src/share/vm/code/nmethod.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/share/vm/code/nmethod.cpp b/src/share/vm/code/nmethod.cpp index d529a1cbd..9da564d27 100644 --- a/src/share/vm/code/nmethod.cpp +++ b/src/share/vm/code/nmethod.cpp @@ -971,7 +971,9 @@ void nmethod::print_on(outputStream* st, const char* title) const { ttyLocker ttyl; print_compilation(st, /*method_name*/NULL, title, method(), /*is_blocking*/false, - compile_id(), osr_entry_bci(), comp_level()); + compile_id(), + is_osr_method() ? osr_entry_bci() : InvocationEntryBci, + comp_level()); if (WizardMode) st->print(" (" INTPTR_FORMAT ")", this); } } -- GitLab