changeset 9646:29771f4b4d47

8141629: Hs-comp doesn't build with JDK-8139040 Summary: Fix benign uninitialized vars Reviewed-by: roland
author neliasso
date Fri, 06 Nov 2015 16:42:01 +0100
parents a20807e48002
children 9e2ae607c0d8
files src/cpu/x86/vm/macroAssembler_x86.cpp src/share/vm/opto/library_call.cpp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/macroAssembler_x86.cpp	Fri Nov 06 11:34:03 2015 +0100
+++ b/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/src/share/vm/opto/library_call.cpp	Fri Nov 06 11:34:03 2015 +0100
+++ b/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 {