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

Side by Side Diff: Source/platform/heap/AddressSanitizer.h

Issue 1120943002: Various ASan exemptions to allow Oilpan pre-sweep poisoning of unmarkeds. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 5 years, 7 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 | « Source/platform/Timer.cpp ('k') | Source/platform/heap/Handle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size)) 47 #define __lsan_register_root_region(addr, size) ((void)(addr), (void)(size))
48 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size)) 48 #define __lsan_unregister_root_region(addr, size) ((void)(addr), (void)(size))
49 #endif 49 #endif
50 50
51 // FIXME: Have to handle (ADDRESS_SANITIZER && _WIN32) differently as it uses 51 // FIXME: Have to handle (ADDRESS_SANITIZER && _WIN32) differently as it uses
52 // both Clang (which supports the __attribute__ syntax) and CL (which doesn't) 52 // both Clang (which supports the __attribute__ syntax) and CL (which doesn't)
53 // as long as we use "clang-cl /fallback". This shouldn't be needed when Clang 53 // as long as we use "clang-cl /fallback". This shouldn't be needed when Clang
54 // handles all the code without falling back to CL. 54 // handles all the code without falling back to CL.
55 #if defined(ADDRESS_SANITIZER) && (!OS(WIN) || COMPILER(CLANG)) 55 #if defined(ADDRESS_SANITIZER) && (!OS(WIN) || COMPILER(CLANG))
56 #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) 56 #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
57 #if ENABLE(OILPAN)
58 // TODO(Oilpan): a temporary annotation while lazy sweeping is phased in.
59 // Remove the ENABLE(OILPAN) condition when lazy sweeping is globally enabled.
60 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS
Nico 2016/10/02 00:54:39 Now that oilpan is on, do we still need this alter
61 #else
62 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
63 #endif
57 #else 64 #else
58 #define NO_SANITIZE_ADDRESS 65 #define NO_SANITIZE_ADDRESS
66 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS
59 #endif 67 #endif
60 68
61 const size_t asanMagic = 0xabefeed0; 69 const size_t asanMagic = 0xabefeed0;
62 const size_t asanDeferMemoryReuseCount = 2; 70 const size_t asanDeferMemoryReuseCount = 2;
63 const size_t asanDeferMemoryReuseMask = 0x3; 71 const size_t asanDeferMemoryReuseMask = 0x3;
64 72
65 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/platform/Timer.cpp ('k') | Source/platform/heap/Handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698