--- old/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 2020-02-28 12:50:40.000000000 +0300 +++ new/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp 2020-02-28 12:50:39.000000000 +0300 @@ -4860,6 +4860,8 @@ Register ch1 = rscratch1; Register result_tmp = rscratch2; + cbz(cnt1, NOMATCH); + cmp(cnt1, (u1)4); br(LT, DO1_SHORT);