Index: third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h |
diff --git a/third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h b/third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h |
index c7814bd8851a0ee968069c37f57eb97dede51c32..753aa73bcaa858d40bac235f66206f932862376a 100644 |
--- a/third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h |
+++ b/third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h |
@@ -50,7 +50,7 @@ class WTF_EXPORT ThreadSafeRefCountedBase { |
bool hasOneRef() { return refCount() == 1; } |
- int refCount() const { return static_cast<int const volatile&>(m_refCount); } |
+ int refCount() const { return acquireLoad(&m_refCount); } |
protected: |
// Returns whether the pointer should be freed or not. |