diff -r 7aec3140c7b6 -r 1336d592e5b8 src/share/vm/c1/c1_LIR.cpp --- a/src/share/vm/c1/c1_LIR.cpp Thu Jul 12 15:30:06 2018 +0800 +++ b/src/share/vm/c1/c1_LIR.cpp Fri Jul 13 14:14:12 2018 +0800 @@ -23,8 +23,8 @@ */ /* - * This file has been modified by Loongson Technology in 2015. These - * modifications are Copyright (c) 2015 Loongson Technology, and are made + * This file has been modified by Loongson Technology in 2015, 2018. These + * modifications are Copyright (c) 2015, 2018 Loongson Technology, and are made * available on the same license terms set forth above. */ @@ -2348,7 +2348,12 @@ // LIR_OpProfileType void LIR_OpProfileType::print_instr(outputStream* out) const { - out->print("exact = "); exact_klass()->print_name_on(out); + out->print("exact = "); + if (exact_klass() == NULL) { + out->print("unknown"); + } else { + exact_klass()->print_name_on(out); + } out->print("current = "); ciTypeEntries::print_ciklass(out, current_klass()); mdp()->print(out); out->print(" "); obj()->print(out); out->print(" ");