mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
831fdfe311
commit
82186ce311
4 changed files with 5 additions and 6 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue