8233839: aarch64: missing memory barrier in NewObjectArrayStub and NewTypeArrayStub
authorfyang
Fri, 08 Nov 2019 16:53:57 +0800
changeset 58991 90cf1d4e712f
parent 58990 7f1d2c3a99da
child 58997 74e44250e3a7
child 58998 9e2f184eac99
8233839: aarch64: missing memory barrier in NewObjectArrayStub and NewTypeArrayStub Reviewed-by: adinn
src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp	Fri Nov 08 11:03:00 2019 -0800
+++ b/src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp	Fri Nov 08 16:53:57 2019 +0800
@@ -840,6 +840,7 @@
           __ sub(arr_size, arr_size, t1);  // body length
           __ add(t1, t1, obj);       // body start
           __ initialize_body(t1, arr_size, 0, t2);
+          __ membar(Assembler::StoreStore);
           __ verify_oop(obj);
 
           __ ret(lr);