OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2010, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) | 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef Atomics_h | 30 #ifndef Atomics_h |
31 #define Atomics_h | 31 #define Atomics_h |
32 | 32 |
33 #include "wtf/AddressSanitizer.h" | 33 #include "platform/wtf/AddressSanitizer.h" |
34 #include "wtf/Assertions.h" | 34 #include "platform/wtf/Assertions.h" |
35 #include "wtf/CPU.h" | 35 #include "platform/wtf/CPU.h" |
36 | 36 |
37 #include <stdint.h> | 37 #include <stdint.h> |
38 | 38 |
39 #if COMPILER(MSVC) | 39 #if COMPILER(MSVC) |
40 #include <windows.h> | 40 #include <windows.h> |
41 #endif | 41 #endif |
42 | 42 |
43 #if defined(THREAD_SANITIZER) | 43 #if defined(THREAD_SANITIZER) |
44 #include <sanitizer/tsan_interface_atomic.h> | 44 #include <sanitizer/tsan_interface_atomic.h> |
45 #endif | 45 #endif |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 using WTF::noBarrierLoad; | 393 using WTF::noBarrierLoad; |
394 using WTF::noBarrierStore; | 394 using WTF::noBarrierStore; |
395 | 395 |
396 // These methods allow loading from and storing to poisoned memory. Only | 396 // These methods allow loading from and storing to poisoned memory. Only |
397 // use these methods if you know what you are doing since they will | 397 // use these methods if you know what you are doing since they will |
398 // silence use-after-poison errors from ASan. | 398 // silence use-after-poison errors from ASan. |
399 using WTF::asanUnsafeAcquireLoad; | 399 using WTF::asanUnsafeAcquireLoad; |
400 using WTF::asanUnsafeReleaseStore; | 400 using WTF::asanUnsafeReleaseStore; |
401 | 401 |
402 #endif // Atomics_h | 402 #endif // Atomics_h |
OLD | NEW |