From: Dmitry Vyukov Date: Thu, 21 Mar 2013 06:28:04 +0000 (+0000) Subject: tsan: add a comment about magic numbers X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e797a8e57b1d492e0a6c892aefef5a5c8860841;p=platform%2Fupstream%2Fllvm.git tsan: add a comment about magic numbers llvm-svn: 177628 --- diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index 76203c2..c122e4f 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]; };