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

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

Issue 1164643005: Oilpan: Add ENABLE_LAZY_SWEEPING and ENABLE_IDLE_GC to features.gypi (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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
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 7
8 // TODO(sof): Add SyZyASan support? 8 // TODO(sof): Add SyZyASan support?
9 #if defined(ADDRESS_SANITIZER) 9 #if defined(ADDRESS_SANITIZER)
10 #include <sanitizer/asan_interface.h> 10 #include <sanitizer/asan_interface.h>
(...skipping 10 matching lines...) Expand all
21 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size)) 21 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size))
22 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size)) 22 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size))
23 #endif 23 #endif
24 24
25 // TODO(sof): Have to handle (ADDRESS_SANITIZER && _WIN32) differently as it 25 // TODO(sof): Have to handle (ADDRESS_SANITIZER && _WIN32) differently as it
26 // uses both Clang (which supports the __attribute__ syntax) and CL (which doesn 't) 26 // uses both Clang (which supports the __attribute__ syntax) and CL (which doesn 't)
27 // as long as we use "clang-cl /fallback". This shouldn't be needed when Clang 27 // as long as we use "clang-cl /fallback". This shouldn't be needed when Clang
28 // handles all the code without falling back to CL. 28 // handles all the code without falling back to CL.
29 #if defined(ADDRESS_SANITIZER) && (!OS(WIN) || COMPILER(CLANG)) 29 #if defined(ADDRESS_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
30 #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) 30 #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
31 #if ENABLE(OILPAN) 31 #if ENABLE(LAZY_SWEEPING)
32 // TODO(Oilpan): a temporary annotation while lazy sweeping is phased in.
33 // Remove the ENABLE(OILPAN) condition when lazy sweeping is globally enabled.
34 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS 32 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS
35 #else 33 #else
36 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS 34 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
37 #endif 35 #endif
38 #else 36 #else
39 #define NO_SANITIZE_ADDRESS 37 #define NO_SANITIZE_ADDRESS
40 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS 38 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
41 #endif 39 #endif
42 40
43 #endif // WTF_AddressSanitizer_h 41 #endif // WTF_AddressSanitizer_h
OLDNEW
« Source/build/features.gypi ('K') | « Source/platform/heap/ThreadState.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698