tsan: fix cur_thread alignment
authorDmitry Vyukov <dvyukov@google.com>
Tue, 28 Sep 2021 14:43:28 +0000 (16:43 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 28 Sep 2021 14:49:44 +0000 (16:49 +0200)
commitf3932ae1a078075e9e35f51ead3aaca05a9a23c7
tree3a37eb09dd2775fe300d36e1ff7656677fdf8099
parent86cd2369b6cd7eb17374fb31bccac7895fe34658
tsan: fix cur_thread alignment

Commit 354ded67b3 ("tsan: align ThreadState to cache line")
did an incomplete thing. It marked ThreadState as cache line
aligned, but the thread local ThreadState instance is declared
as an aligned char array with hard-coded 64-byte alignment.
On PowerPC cache line size is 128 bytes, so the hard-coded
64-byte alignment is not enough.
Use cache line alignment consistently.

Differential Revision: https://reviews.llvm.org/D110629
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp