Deleted Added
full compact
tsan_interceptors.h (344779) tsan_interceptors.h (353358)
1#ifndef TSAN_INTERCEPTORS_H
2#define TSAN_INTERCEPTORS_H
3
4#include "sanitizer_common/sanitizer_stacktrace.h"
5#include "tsan_rtl.h"
6
7namespace __tsan {
8

--- 7 unchanged lines hidden (view full) ---

16 ThreadState *const thr_;
17 const uptr pc_;
18 bool in_ignored_lib_;
19 bool ignoring_;
20};
21
22LibIgnore *libignore();
23
1#ifndef TSAN_INTERCEPTORS_H
2#define TSAN_INTERCEPTORS_H
3
4#include "sanitizer_common/sanitizer_stacktrace.h"
5#include "tsan_rtl.h"
6
7namespace __tsan {
8

--- 7 unchanged lines hidden (view full) ---

16 ThreadState *const thr_;
17 const uptr pc_;
18 bool in_ignored_lib_;
19 bool ignoring_;
20};
21
22LibIgnore *libignore();
23
24#if !SANITIZER_GO
25INLINE bool in_symbolizer() {
26 cur_thread_init();
27 return UNLIKELY(cur_thread()->in_symbolizer);
28}
29#endif
30
24} // namespace __tsan
25
26#define SCOPED_INTERCEPTOR_RAW(func, ...) \
31} // namespace __tsan
32
33#define SCOPED_INTERCEPTOR_RAW(func, ...) \
34 cur_thread_init(); \
27 ThreadState *thr = cur_thread(); \
28 const uptr caller_pc = GET_CALLER_PC(); \
29 ScopedInterceptor si(thr, #func, caller_pc); \
30 const uptr pc = StackTrace::GetCurrentPc(); \
31 (void)pc; \
32/**/
33
34#define SCOPED_TSAN_INTERCEPTOR(func, ...) \

--- 34 unchanged lines hidden ---
35 ThreadState *thr = cur_thread(); \
36 const uptr caller_pc = GET_CALLER_PC(); \
37 ScopedInterceptor si(thr, #func, caller_pc); \
38 const uptr pc = StackTrace::GetCurrentPc(); \
39 (void)pc; \
40/**/
41
42#define SCOPED_TSAN_INTERCEPTOR(func, ...) \

--- 34 unchanged lines hidden ---