8158913: aarch64: SEGV running Spark terasort
Summary: Use signed instead of unsigned test for end of loop in gen_write_ref_array_post_barrier
Reviewed-by: aph
Contributed-by: felix.yang@linaro.org
--- a/hotspot/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Tue Jun 07 17:16:51 2016 -0700
+++ b/hotspot/src/cpu/aarch64/vm/stubGenerator_aarch64.cpp Tue Jun 07 10:17:28 2016 +0000
@@ -710,7 +710,7 @@
__ BIND(L_loop);
__ strb(zr, Address(start, count));
__ subs(count, count, 1);
- __ br(Assembler::HS, L_loop);
+ __ br(Assembler::GE, L_loop);
}
break;
default: