projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7869373
)
tsan: add a comment about magic numbers
author
Dmitry Vyukov
<dvyukov@google.com>
Thu, 21 Mar 2013 06:28:04 +0000
(06:28 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Thu, 21 Mar 2013 06:28:04 +0000
(06:28 +0000)
llvm-svn: 177628
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
index
76203c2
..
c122e4f
100644
(file)
--- 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];
};