diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index 76203c2110b6..c122e4f68265 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -31,14 +31,17 @@ using namespace __tsan; // NOLINT const int kSigCount = 64; struct my_siginfo_t { + // The size is determined by looking at sizeof of real siginfo_t on linux. u64 opaque[128 / sizeof(u64)]; }; struct sigset_t { + // The size is determined by looking at sizeof of real sigset_t on linux. u64 val[128 / sizeof(u64)]; }; struct ucontext_t { + // The size is determined by looking at sizeof of real ucontext_t on linux. u64 opaque[936 / sizeof(u64) + 1]; };