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

Side by Side Diff: base/compiler_specific.h

Issue 12951003: Annotate ThreadData::PushToHeadOfList for MemorySanitizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/tracked_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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 #ifndef BASE_COMPILER_SPECIFIC_H_ 5 #ifndef BASE_COMPILER_SPECIFIC_H_
6 #define BASE_COMPILER_SPECIFIC_H_ 6 #define BASE_COMPILER_SPECIFIC_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(COMPILER_MSVC) 10 #if defined(COMPILER_MSVC)
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #define PRINTF_FORMAT(format_param, dots_param) 159 #define PRINTF_FORMAT(format_param, dots_param)
160 #endif 160 #endif
161 161
162 // WPRINTF_FORMAT is the same, but for wide format strings. 162 // WPRINTF_FORMAT is the same, but for wide format strings.
163 // This doesn't appear to yet be implemented in any compiler. 163 // This doesn't appear to yet be implemented in any compiler.
164 // See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 . 164 // See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 .
165 #define WPRINTF_FORMAT(format_param, dots_param) 165 #define WPRINTF_FORMAT(format_param, dots_param)
166 // If available, it would look like: 166 // If available, it would look like:
167 // __attribute__((format(wprintf, format_param, dots_param))) 167 // __attribute__((format(wprintf, format_param, dots_param)))
168 168
169
170 // MemorySanitizer annotations.
171 #ifdef MEMORY_SANITIZER
172 extern "C" {
173 void __msan_unpoison(const void *p, unsigned long s);
174 } // extern "C"
175
176 // Mark a memory region fully initialized.
177 // Use this to annotate code that deliberately reads uninitialized data, for
178 // example a GC scavenging root set pointers from the stack.
179 #define MSAN_UNPOISON(p, s) __msan_unpoison(p, s)
180 #else // MEMORY_SANITIZER
181 #define MSAN_UNPOISON(p, s)
182 #endif // MEMORY_SANITIZER
183
169 #endif // BASE_COMPILER_SPECIFIC_H_ 184 #endif // BASE_COMPILER_SPECIFIC_H_
OLDNEW
« no previous file with comments | « no previous file | base/tracked_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698