8141629: Hs-comp doesn't build with JDK-8139040
authorneliasso
Fri, 06 Nov 2015 16:42:01 +0100
changeset 33639 e672d407c0d9
parent 33638 ef49ed90010b
child 33640 8c586fee084f
8141629: Hs-comp doesn't build with JDK-8139040 Summary: Fix benign uninitialized vars Reviewed-by: roland
hotspot/src/cpu/x86/vm/macroAssembler_x86.cpp
hotspot/src/share/vm/opto/library_call.cpp
--- a/hotspot/src/cpu/x86/vm/macroAssembler_x86.cpp	Fri Nov 06 11:34:03 2015 +0100
+++ b/hotspot/src/cpu/x86/vm/macroAssembler_x86.cpp	Fri Nov 06 16:42:01 2015 +0100
@@ -6978,6 +6978,7 @@
       stride = 8;
     }
   } else {
+    scale = Address::no_scale;  // not used
     scale1 = Address::times_1;
     scale2 = Address::times_2;
     stride = 8;
--- a/hotspot/src/share/vm/opto/library_call.cpp	Fri Nov 06 11:34:03 2015 +0100
+++ b/hotspot/src/share/vm/opto/library_call.cpp	Fri Nov 06 16:42:01 2015 +0100
@@ -1239,7 +1239,7 @@
   Node* dst_start = array_element_address(dst, dst_offset, dst_elem);
   // 'src_start' points to src array + scaled offset
   // 'dst_start' points to dst array + scaled offset
-  Node* count;
+  Node* count = NULL;
   if (compress) {
     count = compress_string(src_start, dst_start, length);
   } else {