8219635: aarch64: missing LoadStore barrier in TemplateTable::fast_storefield
authorfyang
Mon, 25 Feb 2019 18:50:29 +0800
changeset 53928 20ee41e8740d
parent 53927 03924ad3f4d0
child 53929 ca23d3475af0
8219635: aarch64: missing LoadStore barrier in TemplateTable::fast_storefield Reviewed-by: aph Contributed-by: patrick@os.amperecomputing.com
src/hotspot/cpu/aarch64/templateTable_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Tue Feb 26 13:14:26 2019 -0500
+++ b/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Mon Feb 25 18:50:29 2019 +0800
@@ -2981,7 +2981,7 @@
   {
     Label notVolatile;
     __ tbz(r3, ConstantPoolCacheEntry::is_volatile_shift, notVolatile);
-    __ membar(MacroAssembler::StoreStore);
+    __ membar(MacroAssembler::StoreStore | MacroAssembler::LoadStore);
     __ bind(notVolatile);
   }