src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp
changeset 54990 cbc557f166f2
parent 54979 f982c1a6582c
child 54991 82fd8793ba5e
--- a/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp	Mon May 20 14:19:19 2019 -0700
+++ b/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp	Wed May 22 20:12:19 2019 +0300
@@ -4338,6 +4338,7 @@
     __ ldr(ch1, Address(str1));
     // Read whole register from str2. It is safe, because length >=8 here
     __ ldr(ch2, Address(str2));
+    __ sub(cnt2, cnt2, cnt1);
     __ andr(first, ch1, str1_isL ? 0xFF : 0xFFFF);
     if (str1_isL != str2_isL) {
       __ eor(v0, __ T16B, v0, v0);