| Index: src/atomicops_internals_tsan.h
|
| diff --git a/src/atomicops_internals_tsan.h b/src/atomicops_internals_tsan.h
|
| index 1819798a5d361d20a8e4df61fce6dda507da6522..ce5774efd2019ffe1cb6d3db5349a472298d3f9b 100644
|
| --- a/src/atomicops_internals_tsan.h
|
| +++ b/src/atomicops_internals_tsan.h
|
| @@ -276,6 +276,10 @@ inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr,
|
| return cmp;
|
| }
|
|
|
| +inline void NoBarrier_Store(volatile Atomic8* ptr, Atomic8 value) {
|
| + __tsan_atomic8_store(ptr, value, __tsan_memory_order_relaxed);
|
| +}
|
| +
|
| inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {
|
| __tsan_atomic32_store(ptr, value, __tsan_memory_order_relaxed);
|
| }
|
| @@ -289,6 +293,10 @@ inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
|
| __tsan_atomic32_store(ptr, value, __tsan_memory_order_release);
|
| }
|
|
|
| +inline Atomic8 NoBarrier_Load(volatile const Atomic8* ptr) {
|
| + return __tsan_atomic8_load(ptr, __tsan_memory_order_relaxed);
|
| +}
|
| +
|
| inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
|
| return __tsan_atomic32_load(ptr, __tsan_memory_order_relaxed);
|
| }
|
|
|