8210320: PPC64: Fix uninitialized variable in C1 LIR assembler code
Reviewed-by: mbaesken, shade, mdoerr
--- a/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp Tue Sep 04 13:19:38 2018 +0200
+++ b/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp Tue Sep 04 11:46:23 2018 -0400
@@ -2396,8 +2396,8 @@
if (reg_conflict) { obj = dst; }
}
- ciMethodData* md;
- ciProfileData* data;
+ ciMethodData* md = NULL;
+ ciProfileData* data = NULL;
int mdo_offset_bias = 0;
if (should_profile) {
ciMethod* method = op->profiled_method();
@@ -2514,8 +2514,8 @@
__ verify_oop(value);
CodeStub* stub = op->stub();
// Check if it needs to be profiled.
- ciMethodData* md;
- ciProfileData* data;
+ ciMethodData* md = NULL;
+ ciProfileData* data = NULL;
int mdo_offset_bias = 0;
if (should_profile) {
ciMethod* method = op->profiled_method();