8141629: Hs-comp doesn't build with JDK-8139040

Fix benign uninitialized vars

Reviewed-by: roland
This commit is contained in:
Nils Eliasson 2015-11-06 16:42:01 +01:00
parent 3307d0f163
commit 6ec2776bf3
2 changed files with 2 additions and 1 deletions

View File

@ -6978,6 +6978,7 @@ void MacroAssembler::string_compare(Register str1, Register str2,
stride = 8;
}
} else {
scale = Address::no_scale; // not used
scale1 = Address::times_1;
scale2 = Address::times_2;
stride = 8;

View File

@ -1239,7 +1239,7 @@ bool LibraryCallKit::inline_string_copy(bool compress) {
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 {