OLD | NEW |
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 Loading... |
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 | |
61 #endif | |
62 #else | 57 #else |
63 #define NO_SANITIZE_ADDRESS | 58 #define NO_SANITIZE_ADDRESS |
64 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS | |
65 #endif | 59 #endif |
66 | 60 |
67 const size_t asanMagic = 0xabefeed0; | 61 const size_t asanMagic = 0xabefeed0; |
68 const size_t asanDeferMemoryReuseCount = 2; | 62 const size_t asanDeferMemoryReuseCount = 2; |
69 const size_t asanDeferMemoryReuseMask = 0x3; | 63 const size_t asanDeferMemoryReuseMask = 0x3; |
70 | 64 |
71 #endif | 65 #endif |
OLD | NEW |