8255065: Zero: accessor_entry misses the IRIW case

Reviewed-by: mdoerr
This commit is contained in:
Aleksey Shipilev 2020-10-21 06:14:25 +00:00
parent 2a0633507c
commit bd45191f00

View file

@ -596,6 +596,9 @@ int ZeroInterpreter::accessor_entry(Method* method, intptr_t UNUSED, TRAPS) {
break; break;
} }
if (entry->is_volatile()) { if (entry->is_volatile()) {
if (support_IRIW_for_not_multiple_copy_atomic_cpu) {
OrderAccess::fence();
}
switch (entry->flag_state()) { switch (entry->flag_state()) {
case ctos: case ctos:
SET_LOCALS_INT(object->char_field_acquire(entry->f2_as_index()), 0); SET_LOCALS_INT(object->char_field_acquire(entry->f2_as_index()), 0);