< prev index next >

src/share/vm/c1/c1_LIR.cpp

Print this page
rev 7883 : 8073154: NULL-pointer dereferencing in LIR_OpProfileType::print_instr
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 2094,2105 **** tmp1()->print(out); out->print(" "); } // LIR_OpProfileType void LIR_OpProfileType::print_instr(outputStream* out) const { ! out->print("exact = "); 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(" "); tmp()->print(out); out->print(" "); } --- 2094,2111 ---- tmp1()->print(out); out->print(" "); } // LIR_OpProfileType void LIR_OpProfileType::print_instr(outputStream* out) const { ! 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()); ! out->print(" "); mdp()->print(out); out->print(" "); obj()->print(out); out->print(" "); tmp()->print(out); out->print(" "); }
< prev index next >