OpenJDK / jdk / jdk
changeset 58078:6308389bdc83
8239069: C2: SIGSEGV in IdealGraphPrinter::walk_nodes due to C->root() being NULL
Summary: Fix NULL pointer dereference when trying to print the ideal graph when Compile::record_failure() is called twice.
Reviewed-by: neliasso, thartmann
author | chagedorn |
---|---|
date | Mon, 17 Feb 2020 12:29:24 +0100 |
parents | b4a8d0c9da88 |
children | 140261de4a17 |
files | src/hotspot/share/opto/idealGraphPrinter.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/hotspot/share/opto/idealGraphPrinter.cpp Mon Feb 17 12:29:03 2020 +0100 +++ b/src/hotspot/share/opto/idealGraphPrinter.cpp Mon Feb 17 12:29:24 2020 +0100 @@ -664,7 +664,7 @@ // Print current ideal graph void IdealGraphPrinter::print(const char *name, Node *node) { - if (!_current_method || !_should_send_method) return; + if (!_current_method || !_should_send_method || node == NULL) return; // Warning, unsafe cast? _chaitin = (PhaseChaitin *)C->regalloc();