[PATCH] D45646: [tsan] Zero out the shadow memory for the stack and TLS in ThreadFinish
Dmitry Vyukov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 19 02:10:05 PDT 2018
dvyukov added a comment.
Let's concentrate on correctness for now.
Shadow memory is not guaranteed to be zeros for new memory. At munmap does not clear it, and probably some other things. Perhaps if you use munmap in test, it will be easier to catch this (e.g. mmap a large chunk of memory, write to it, munmap, create a thread).
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D45646
More information about the llvm-commits
mailing list