[all-commits] [llvm/llvm-project] f3932a: tsan: fix cur_thread alignment
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Tue Sep 28 07:49:57 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3932ae1a078075e9e35f51ead3aaca05a9a23c7
https://github.com/llvm/llvm-project/commit/f3932ae1a078075e9e35f51ead3aaca05a9a23c7
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2021-09-28 (Tue, 28 Sep 2021)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
Log Message:
-----------
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
More information about the All-commits
mailing list