| Index: third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
|
| diff --git a/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h b/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
|
| index 8c5d9391ddb0ec54ca030b22bf197ff509ab0235..6584c4ea996d84010829119f53b5fa5a89d71737 100644
|
| --- a/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
|
| +++ b/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
|
| @@ -68,11 +68,11 @@
|
| *
|
| * The most common case requiring annotations is atomic reference counting:
|
| * bool deref() {
|
| - * ANNOTATE_HAPPENS_BEFORE(&m_refCount);
|
| - * if (!atomicDecrement(&m_refCount)) {
|
| - * // m_refCount is now 0
|
| - * ANNOTATE_HAPPENS_AFTER(&m_refCount);
|
| - * // "return true; happens-after each atomicDecrement of m_refCount"
|
| + * ANNOTATE_HAPPENS_BEFORE(&ref_count_);
|
| + * if (!atomicDecrement(&ref_count_)) {
|
| + * // ref_count_ is now 0
|
| + * ANNOTATE_HAPPENS_AFTER(&ref_count_);
|
| + * // "return true; happens-after each atomicDecrement of ref_count_"
|
| * return true;
|
| * }
|
| * return false;
|
|
|