8218185: aarch64: missing LoadStore barrier in TemplateTable::putfield_or_static
Reviewed-by: aph
Contributed-by: lunliu93@gmail.com
--- 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);
}