changeset 56877:90cf1d4e712f

8233839: aarch64: missing memory barrier in NewObjectArrayStub and NewTypeArrayStub Reviewed-by: adinn
author fyang
date Fri, 08 Nov 2019 16:53:57 +0800
parents 7f1d2c3a99da
children 9e2f184eac99
files src/hotspot/cpu/aarch64/c1_Runtime1_aarch64.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);