From 056c6557fc14fc32e18280aac2995af86d273784 Mon Sep 17 00:00:00 2001 From: kelthuzadx Date: Thu, 18 Mar 2021 14:00:39 +0800 Subject: [PATCH] fix igv_print crash --- src/hotspot/share/opto/compile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/opto/compile.cpp b/src/hotspot/share/opto/compile.cpp index 3c8d5093d4d86..af3107dea9787 100644 --- a/src/hotspot/share/opto/compile.cpp +++ b/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