8210320: PPC64: Fix uninitialized variable in C1 LIR assembler code
authorgromero
Tue, 04 Sep 2018 11:46:23 -0400
changeset 51629 78c7f0c7827d
parent 51628 507c72580842
child 51630 25606a4e6693
8210320: PPC64: Fix uninitialized variable in C1 LIR assembler code Reviewed-by: mbaesken, shade, mdoerr
src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp
--- 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();