diff options
| -rw-r--r-- | compiler/utils/atomic_dex_ref_map-inl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/utils/atomic_dex_ref_map-inl.h b/compiler/utils/atomic_dex_ref_map-inl.h index 7977e8201f..ce3302bb62 100644 --- a/compiler/utils/atomic_dex_ref_map-inl.h +++ b/compiler/utils/atomic_dex_ref_map-inl.h @@ -81,8 +81,7 @@ inline bool AtomicDexRefMap<DexFileReferenceType, Value>::Remove(const DexFileRe if (array == nullptr) { return false; } - *out = (*array)[ref.index].LoadRelaxed(); - (*array)[ref.index].StoreSequentiallyConsistent(nullptr); + *out = (*array)[ref.index].ExchangeSequentiallyConsistent(nullptr); return true; } |