summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-01-25 02:05:48 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-01-25 02:05:48 +0000
commitf4e7051c6736e83facc072e06344b7b52bbf2183 (patch)
treee9516a035c5c1680eb963d34c1232f242b16de0a /llvm/lib/Transforms
parent9ea001401caa607dccbd974df0d44b13be63de20 (diff)
downloadbcm5719-llvm-f4e7051c6736e83facc072e06344b7b52bbf2183.tar.gz
bcm5719-llvm-f4e7051c6736e83facc072e06344b7b52bbf2183.zip
[hwasan] Madvise away thread aux data
Summary: Release memory pages for thread data (allocator cache, stack allocations ring buffer, etc) when a thread exits. We can not simply munmap them because this memory is custom allocated within a limited address range, and it needs to stay "reserved". This change alters thread storage layout by putting the ring buffer before Thread instead of after it. This makes it possible to find the start of the thread aux allocation given only the Thread pointer. Reviewers: kcc, pcc Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D56621 llvm-svn: 352151
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud