Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: src/base/atomic-utils.h

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/base/atomicops.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/atomic-utils.h
diff --git a/src/base/atomic-utils.h b/src/base/atomic-utils.h
index f4f43fc8173d2e349b0fe005445ff73ca2a501c0..b2ac658b10b26ac4fd07bec94b4a7f915dcc764c 100644
--- a/src/base/atomic-utils.h
+++ b/src/base/atomic-utils.h
@@ -68,18 +68,18 @@ class NoBarrierAtomicValue {
}
V8_INLINE bool TrySetValue(T old_value, T new_value) {
- return base::NoBarrier_CompareAndSwap(
+ return base::Relaxed_CompareAndSwap(
&value_, cast_helper<T>::to_storage_type(old_value),
cast_helper<T>::to_storage_type(new_value)) ==
cast_helper<T>::to_storage_type(old_value);
}
V8_INLINE T Value() const {
- return cast_helper<T>::to_return_type(base::NoBarrier_Load(&value_));
+ return cast_helper<T>::to_return_type(base::Relaxed_Load(&value_));
}
V8_INLINE void SetValue(T new_value) {
- base::NoBarrier_Store(&value_, cast_helper<T>::to_storage_type(new_value));
+ base::Relaxed_Store(&value_, cast_helper<T>::to_storage_type(new_value));
}
private:
« no previous file with comments | « no previous file | src/base/atomicops.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698