summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerUtilLinux.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-12-04 18:56:38 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-12-04 18:56:38 +0000
commit2217d9faa962b3bee8704fbfae796fe342613266 (patch)
tree102bf4489e2b030e56fb34a444902b54c0d5348e /lib/fuzzer/FuzzerUtilLinux.cpp
parentfa0e1919d34ccf05396f66ffd4b7d5dc5961f8b8 (diff)
[sanitizer] 64-bit allocator's PopulateFreeArray partial refactor
Summary: This is an attempt at making `PopulateFreeArray` less obscure, more consistent, and a tiny bit faster in some circumstances: - use more consistent variable names, that work both for the user & the metadata portions of the code; the purpose of the code is mostly the same for both regions, so it makes sense that the code should be mostly similar as well; - replace the while sum loops with a single `RoundUpTo`; - mask most of the metadata computations behind kMetadataSize, allowing some blocks to be completely optimized out if not use metadata; - `const` the constant variables; - add a `LIKELY` as the branch it applies to will almost always be taken. Reviewers: alekseyshl, flowerhack Reviewed By: alekseyshl Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D40754 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@319673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerUtilLinux.cpp')
0 files changed, 0 insertions, 0 deletions