Skip to content
Permalink
Browse files
8263775: C2: igv_print() crash unexpectedly when called from debugger
Reviewed-by: chagedorn
  • Loading branch information
Yi Yang authored and chhagedorn committed Mar 18, 2021
1 parent 63eae8f commit 3f31a6baa908456cb3235bb97818926343b75f31
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hotspot/share/opto/compile.cpp
@@ -4797,7 +4797,7 @@ void Compile::igv_print_method_to_file(const char* phase_name, bool append) {
_debug_file_printer->update_compiled_method(C->method());
}
tty->print_cr("Method %s to %s", append ? "appended" : "printed", file_name);
_debug_file_printer->print_method(phase_name, 0);
_debug_file_printer->print(phase_name, (Node*)C->root());
}

void Compile::igv_print_method_to_network(const char* phase_name) {
@@ -4807,7 +4807,7 @@ void Compile::igv_print_method_to_network(const char* phase_name) {
_debug_network_printer->update_compiled_method(C->method());
}
tty->print_cr("Method printed over network stream to IGV");
_debug_network_printer->print_method(phase_name, 0);
_debug_network_printer->print(phase_name, (Node*)C->root());
}
#endif

1 comment on commit 3f31a6b

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 3f31a6b Mar 18, 2021

Please sign in to comment.