diff options
author | Kostya Kortchinsky <kostyak@google.com> | 2018-03-14 15:50:32 +0000 |
---|---|---|
committer | Kostya Kortchinsky <kostyak@google.com> | 2018-03-14 15:50:32 +0000 |
commit | a51139046e0442356a336304257752474232af52 (patch) | |
tree | 5a90ee641a28897de57eba5d18ac6af4aaf533f3 /lldb/packages/Python/lldbsuite/test/functionalities/command_regex | |
parent | d1c3c995c05fcd9c50f79ef0ef001f1439f51cc1 (diff) | |
download | bcm5719-llvm-a51139046e0442356a336304257752474232af52.tar.gz bcm5719-llvm-a51139046e0442356a336304257752474232af52.zip |
[scudo] Add Chunk::getSize, rework Chunk::getUsableSize
Summary:
Using `getActuallyAllocatedSize` from the Combined resulting in mediocre
compiled code, as the `ClassId != 0` predicament was not propagated there,
resulting in additional branches and dead code. Move the logic in the frontend,
which results in better compiled code. Also I think it makes it slightly easier
to distinguish between the size the user requested, and the size that was
actually allocated by the allocator.
`const` a couple of things as well.
This has no functional impact.
Reviewers: alekseyshl
Reviewed By: alekseyshl
Subscribers: delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D44444
llvm-svn: 327525
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/command_regex')
0 files changed, 0 insertions, 0 deletions