src/share/vm/c1/c1_LIR.cpp

changeset 9167
1336d592e5b8
parent 9157
2966b0be4027
child 9214
950e185f5ded
     1.1 --- a/src/share/vm/c1/c1_LIR.cpp	Thu Jul 12 15:30:06 2018 +0800
     1.2 +++ b/src/share/vm/c1/c1_LIR.cpp	Fri Jul 13 14:14:12 2018 +0800
     1.3 @@ -23,8 +23,8 @@
     1.4   */
     1.5  
     1.6  /*
     1.7 - * This file has been modified by Loongson Technology in 2015. These
     1.8 - * modifications are Copyright (c) 2015 Loongson Technology, and are made
     1.9 + * This file has been modified by Loongson Technology in 2015, 2018. These
    1.10 + * modifications are Copyright (c) 2015, 2018 Loongson Technology, and are made
    1.11   * available on the same license terms set forth above.
    1.12   */
    1.13  
    1.14 @@ -2348,7 +2348,12 @@
    1.15  
    1.16  // LIR_OpProfileType
    1.17  void LIR_OpProfileType::print_instr(outputStream* out) const {
    1.18 -  out->print("exact = "); exact_klass()->print_name_on(out);
    1.19 +  out->print("exact = ");
    1.20 +  if (exact_klass() == NULL) {
    1.21 +    out->print("unknown");
    1.22 +  } else {
    1.23 +    exact_klass()->print_name_on(out);
    1.24 +  }
    1.25    out->print("current = "); ciTypeEntries::print_ciklass(out, current_klass());
    1.26    mdp()->print(out);          out->print(" ");
    1.27    obj()->print(out);          out->print(" ");

mercurial