aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2016-09-20 22:17:59 +0000
committerKostya Kortchinsky <kostyak@google.com>2016-09-20 22:17:59 +0000
commit1da3ea561ac631c158ab759954d3b5810cb0af91 (patch)
tree03dfb2cf76dcb8f3b3c7a84b1befb7909fe11e14 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent4c5506a64dd57c787147e7c449b740ffd894c4cc (diff)
downloadllvm-1da3ea561ac631c158ab759954d3b5810cb0af91.zip
llvm-1da3ea561ac631c158ab759954d3b5810cb0af91.tar.gz
llvm-1da3ea561ac631c158ab759954d3b5810cb0af91.tar.bz2
[scudo] Fix a bug in the new Secondary Allocator
Summary: GetActuallyAllocatedSize() was not accounting for the last page of the mapping being a guard page, and was returning the wrong number of actually allocated bytes, which in turn would mess up with the realloc logic. Current tests didn't find this as the size exercised was only serviced by the Primary. Correct the issue by subtracting PageSize, and update the realloc test to exercise paths in both the Primary and the Secondary. Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24787 llvm-svn: 282030
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions