8208604: Metadata::print_value_string() compares 'this' to NULL

Remove the comparison and add asserts to check for NULL

Reviewed-by: coleenp, gziemski
This commit is contained in:
Harold Seigel 2018-08-06 14:20:58 -04:00
parent 831fdfe311
commit 82186ce311
4 changed files with 5 additions and 6 deletions

View file

@ -281,6 +281,7 @@ JRT_ENTRY_NO_ASYNC(static address, exception_handler_for_pc_helper(JavaThread* t
if (log_is_enabled(Info, exceptions)) {
ResourceMark rm;
stringStream tempst;
assert(cm->method() != NULL, "Unexpected null method()");
tempst.print("compiled method <%s>\n"
" at PC" INTPTR_FORMAT " for thread " INTPTR_FORMAT,
cm->method()->print_value_string(), p2i(pc), p2i(thread));