Skip to content

Commit d387c92

Browse files
author
duke
committedJul 4, 2020
Automatic merge of jdk:master into master
2 parents 425af55 + 459da4a commit d387c92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/hotspot/cpu/aarch64/templateTable_aarch64.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -2975,6 +2975,9 @@ void TemplateTable::fast_storefield(TosState state)
29752975
// access constant pool cache
29762976
__ get_cache_and_index_at_bcp(r2, r1, 1);
29772977

2978+
// Must prevent reordering of the following cp cache loads with bytecode load
2979+
__ membar(MacroAssembler::LoadLoad);
2980+
29782981
// test for volatile with r3
29792982
__ ldrw(r3, Address(r2, in_bytes(base +
29802983
ConstantPoolCacheEntry::flags_offset())));
@@ -3067,6 +3070,10 @@ void TemplateTable::fast_accessfield(TosState state)
30673070

30683071
// access constant pool cache
30693072
__ get_cache_and_index_at_bcp(r2, r1, 1);
3073+
3074+
// Must prevent reordering of the following cp cache loads with bytecode load
3075+
__ membar(MacroAssembler::LoadLoad);
3076+
30703077
__ ldr(r1, Address(r2, in_bytes(ConstantPoolCache::base_offset() +
30713078
ConstantPoolCacheEntry::f2_offset())));
30723079
__ ldrw(r3, Address(r2, in_bytes(ConstantPoolCache::base_offset() +

0 commit comments

Comments
 (0)
Please sign in to comment.