8219635: aarch64: missing LoadStore barrier in TemplateTable::fast_storefield
Reviewed-by: aph
Contributed-by: patrick@os.amperecomputing.com
--- 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);
}