OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 * With the default build flags, these macros are empty, hence don't affect | 42 * With the default build flags, these macros are empty, hence don't affect |
43 * performance of a compiled binary. | 43 * performance of a compiled binary. |
44 * If dynamic annotations are enabled, they just call no-op functions. | 44 * If dynamic annotations are enabled, they just call no-op functions. |
45 * The dynamic analysis tools can intercept these functions and replace them | 45 * The dynamic analysis tools can intercept these functions and replace them |
46 * with their own implementations. | 46 * with their own implementations. |
47 * | 47 * |
48 * See http://code.google.com/p/data-race-test/wiki/DynamicAnnotations for more | 48 * See http://code.google.com/p/data-race-test/wiki/DynamicAnnotations for more |
49 * information. | 49 * information. |
50 */ | 50 */ |
51 | 51 |
52 #include "wtf/WTFExport.h" | 52 #include "platform/wtf/WTFExport.h" |
53 #include "wtf/build_config.h" | 53 #include "platform/wtf/build_config.h" |
54 | 54 |
55 #if USE(DYNAMIC_ANNOTATIONS) | 55 #if USE(DYNAMIC_ANNOTATIONS) |
56 /* Tell data race detector that we're not interested in reports on the given | 56 /* Tell data race detector that we're not interested in reports on the given |
57 * address range. */ | 57 * address range. */ |
58 #define WTF_ANNOTATE_BENIGN_RACE_SIZED(address, size, description) \ | 58 #define WTF_ANNOTATE_BENIGN_RACE_SIZED(address, size, description) \ |
59 WTFAnnotateBenignRaceSized(__FILE__, __LINE__, address, size, description) | 59 WTFAnnotateBenignRaceSized(__FILE__, __LINE__, address, size, description) |
60 #define WTF_ANNOTATE_BENIGN_RACE(pointer, description) \ | 60 #define WTF_ANNOTATE_BENIGN_RACE(pointer, description) \ |
61 WTFAnnotateBenignRaceSized(__FILE__, __LINE__, pointer, sizeof(*(pointer)), \ | 61 WTFAnnotateBenignRaceSized(__FILE__, __LINE__, pointer, sizeof(*(pointer)), \ |
62 description) | 62 description) |
63 | 63 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 #else // USE(DYNAMIC_ANNOTATIONS) | 105 #else // USE(DYNAMIC_ANNOTATIONS) |
106 /* These macros are empty when dynamic annotations are not enabled so you can | 106 /* These macros are empty when dynamic annotations are not enabled so you can |
107 * use them without affecting the performance of release binaries. */ | 107 * use them without affecting the performance of release binaries. */ |
108 #define WTF_ANNOTATE_BENIGN_RACE_SIZED(address, size, description) | 108 #define WTF_ANNOTATE_BENIGN_RACE_SIZED(address, size, description) |
109 #define WTF_ANNOTATE_BENIGN_RACE(pointer, description) | 109 #define WTF_ANNOTATE_BENIGN_RACE(pointer, description) |
110 #define WTF_ANNOTATE_HAPPENS_BEFORE(address) | 110 #define WTF_ANNOTATE_HAPPENS_BEFORE(address) |
111 #define WTF_ANNOTATE_HAPPENS_AFTER(address) | 111 #define WTF_ANNOTATE_HAPPENS_AFTER(address) |
112 #endif // USE(DYNAMIC_ANNOTATIONS) | 112 #endif // USE(DYNAMIC_ANNOTATIONS) |
113 | 113 |
114 #endif // WTF_DynamicAnnotations_h | 114 #endif // WTF_DynamicAnnotations_h |
OLD | NEW |