tsan: add a comment about magic numbers

llvm-svn: 177628
This commit is contained in:
Dmitry Vyukov 2013-03-21 06:28:04 +00:00
parent 78693730a4
commit 5e797a8e57
1 changed files with 3 additions and 0 deletions

View File

@ -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];
};