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

Unified Diff: third_party/WebKit/Source/wtf/ThreadSafeRefCounted.h

Issue 2741793003: Accurate transfer of SerializedScriptValue allocation costs. (Closed)
Patch Set: Created 3 years, 9 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
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.

Powered by Google App Engine
This is Rietveld 408576698