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

Side by Side Diff: third_party/WebKit/Source/wtf/AddressSanitizer.h

Issue 1892713003: Prepare for multiple ThreadHeaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added NO_SANITIZE_THREAD Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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
Alexander Potapenko 2016/04/26 10:02:27 Nit: guess it's time to rename this file, but I do
keishi 2016/04/26 11:17:30 There is already a TODO for this on line 7. I thin
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WTF_AddressSanitizer_h 5 #ifndef WTF_AddressSanitizer_h
6 #define WTF_AddressSanitizer_h 6 #define WTF_AddressSanitizer_h
7 // TODO(kojii): This file will need to be renamed, because it's no more 7 // TODO(kojii): This file will need to be renamed, because it's no more
8 // specific to AddressSanitizer. 8 // specific to AddressSanitizer.
9 9
10 #include "wtf/build_config.h" 10 #include "wtf/build_config.h"
11 11
12 // TODO(sof): Add SyZyASan support? 12 // TODO(sof): Add SyZyASan support?
(...skipping 28 matching lines...) Expand all
41 #define NO_SANITIZE_ADDRESS 41 #define NO_SANITIZE_ADDRESS
42 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS 42 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
43 #endif 43 #endif
44 44
45 #if defined(MEMORY_SANITIZER) && (!OS(WIN) || COMPILER(CLANG)) 45 #if defined(MEMORY_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
46 #define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory)) 46 #define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory))
47 #else 47 #else
48 #define NO_SANITIZE_MEMORY 48 #define NO_SANITIZE_MEMORY
49 #endif 49 #endif
50 50
51 #if defined(THREAD_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
52 #define NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
53 #else
54 #define NO_SANITIZE_THREAD
55 #endif
56
51 #endif // WTF_AddressSanitizer_h 57 #endif // WTF_AddressSanitizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698