8218185: aarch64: missing LoadStore barrier in TemplateTable::putfield_or_static
authorfyang
Fri, 01 Feb 2019 15:05:52 +0800
changeset 53626 e2fc434b410a
parent 53625 0a9dfdbb01d1
child 53627 d997c227e968
8218185: aarch64: missing LoadStore barrier in TemplateTable::putfield_or_static Reviewed-by: aph Contributed-by: lunliu93@gmail.com
src/hotspot/cpu/aarch64/templateTable_aarch64.cpp
--- a/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Fri Feb 01 18:51:14 2019 -0800
+++ b/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp	Fri Feb 01 15:05:52 2019 +0800
@@ -2720,7 +2720,7 @@
   {
     Label notVolatile;
     __ tbz(r5, ConstantPoolCacheEntry::is_volatile_shift, notVolatile);
-    __ membar(MacroAssembler::StoreStore);
+    __ membar(MacroAssembler::StoreStore | MacroAssembler::LoadStore);
     __ bind(notVolatile);
   }