| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file defines dynamic annotations for use with dynamic analysis | 5 // This file defines dynamic annotations for use with dynamic analysis |
| 6 // tool such as valgrind, PIN, etc. | 6 // tool such as valgrind, PIN, etc. |
| 7 // | 7 // |
| 8 // Dynamic annotation is a source code annotation that affects | 8 // Dynamic annotation is a source code annotation that affects |
| 9 // the generated code (that is, the annotation is not a comment). | 9 // the generated code (that is, the annotation is not a comment). |
| 10 // Each such annotation is attached to a particular | 10 // Each such annotation is attached to a particular |
| 11 // instruction and/or to a particular object (address) in the program. | 11 // instruction and/or to a particular object (address) in the program. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 #define ANNOTATE_UNPROTECTED_READ(x) (x) | 349 #define ANNOTATE_UNPROTECTED_READ(x) (x) |
| 350 #define ANNOTATE_BENIGN_RACE_STATIC(static_var, description) // empty | 350 #define ANNOTATE_BENIGN_RACE_STATIC(static_var, description) // empty |
| 351 | 351 |
| 352 #endif // !NDEBUG | 352 #endif // !NDEBUG |
| 353 | 353 |
| 354 // Return non-zero value if running under valgrind. | 354 // Return non-zero value if running under valgrind. |
| 355 extern "C" int RunningOnValgrind(); | 355 extern "C" int RunningOnValgrind(); |
| 356 | 356 |
| 357 | 357 |
| 358 #endif // BASE_DYNAMIC_ANNOTATIONS_H_ | 358 #endif // BASE_DYNAMIC_ANNOTATIONS_H_ |
| OLD | NEW |