1 // Synthetic benchmark for __tsan_func_entry/exit (spends ~75% there).
6 volatile int kRepeat1
= 1 << 30;
7 const int kRepeat
= kRepeat1
;
8 for (int i
= 0; i
< kRepeat
; i
++)
12 __attribute__((noinline
)) void bar(volatile bool x
) {
17 __attribute__((noinline
)) void foo(bool x
) {
18 if (__builtin_expect(x
, false))