Index: base/third_party/dynamic_annotations/README.chromium |
diff --git a/base/third_party/dynamic_annotations/README.chromium b/base/third_party/dynamic_annotations/README.chromium |
index dc8bdef05312259dedeb940bc4760e19e137d027..ff21b19e5028ad3767e72467b7b35cdcae6a0222 100644 |
--- a/base/third_party/dynamic_annotations/README.chromium |
+++ b/base/third_party/dynamic_annotations/README.chromium |
@@ -3,6 +3,13 @@ URL: http://code.google.com/p/data-race-test/wiki/DynamicAnnotations |
Version: 4384 |
License: BSD |
+ATTENTION: please avoid using these annotations in Chromium code. |
+They were mainly intended to instruct the Valgrind-based version of |
+ThreadSanitizer to handle atomic operations. The new version of ThreadSanitizer |
+based on compiler instrumentation understands atomic operations out of the box, |
+so normally you don't need the annotations. |
+If you still think you do, please consider writing a comment at http://crbug.com/349861 |
+ |
One header and one source file (dynamic_annotations.h and dynamic_annotations.c) |
in this directory define runtime macros useful for annotating synchronization |
utilities and benign data races so data race detectors can handle Chromium code |