8145700: Uninitialised variable in macroAssembler_x86.cpp:7038
Added missing local variable initializations. Reviewed-by: kvn, vlivanov, thartmann, mcberg
This commit is contained in:
parent
98bbb4efa0
commit
02290b357c
@ -7845,7 +7845,9 @@ void MacroAssembler::string_compare(Register str1, Register str2,
|
||||
Label COMPARE_WIDE_VECTORS_LOOP_FAILED; // used only _LP64 && AVX3
|
||||
int stride, stride2, adr_stride, adr_stride1, adr_stride2;
|
||||
int stride2x2 = 0x40;
|
||||
Address::ScaleFactor scale, scale1, scale2;
|
||||
Address::ScaleFactor scale = Address::no_scale;
|
||||
Address::ScaleFactor scale1 = Address::no_scale;
|
||||
Address::ScaleFactor scale2 = Address::no_scale;
|
||||
|
||||
if (ae != StrIntrinsicNode::LL) {
|
||||
stride2x2 = 0x20;
|
||||
@ -7899,9 +7901,9 @@ 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;
|
||||
// scale not used
|
||||
stride = 8;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user