aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2020-08-14 11:43:33 -0700
committerMatt Morehouse <mascasa@google.com>2020-08-14 11:43:49 -0700
commitbb3a3da38d01cd5639b502ec3979d201d59f1950 (patch)
treee7394fac7e04f0e9efd1227b85e6b4803ec0c8a1 /llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
parent65049f9b7934d6282fe599b29f44f93507148a9d (diff)
downloadllvm-bb3a3da38d01cd5639b502ec3979d201d59f1950.zip
llvm-bb3a3da38d01cd5639b502ec3979d201d59f1950.tar.gz
llvm-bb3a3da38d01cd5639b502ec3979d201d59f1950.tar.bz2
[DFSan] Don't unmap during dfsan_flush().
Unmapping and remapping is dangerous since another thread could touch the shadow memory while it is unmapped. But there is really no need to unmap anyway, since mmap(MAP_FIXED) will happily clobber the existing mapping with zeroes. This is thread-safe since the mmap() is done under the same kernel lock as page faults are done. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D85947
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
0 files changed, 0 insertions, 0 deletions