summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2017-06-29 16:45:20 +0000
committerKostya Kortchinsky <kostyak@google.com>2017-06-29 16:45:20 +0000
commit0ce4999002659c659510a1b5bd8478da31c2a5ee (patch)
tree416f3dbe48447f3851df120f36d9f39b861934bc /llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp
parent1fdfdf7155032f6cc55c146405e9d7082258ae01 (diff)
downloadbcm5719-llvm-0ce4999002659c659510a1b5bd8478da31c2a5ee.tar.gz
bcm5719-llvm-0ce4999002659c659510a1b5bd8478da31c2a5ee.zip
[scudo] Change aligned alloc functions to be more compliant & perf changes
Summary: We were not following the `man` documented behaviors for invalid arguments to `memalign` and associated functions. Using `CHECK` for those was a bit extreme, so we relax the behavior to return null pointers as expected when this happens. Adapt the associated test. I am using this change also to change a few more minor performance improvements: - mark as `UNLIKELY` a bunch of unlikely conditions; - the current `CHECK` in `__sanitizer::RoundUpTo` is redundant for us in *all* calls. So I am introducing our own version without said `CHECK`. - change our combined allocator `GetActuallyAllocatedSize`. We already know if the pointer is from the Primary or Secondary, so the `PointerIsMine` check is redundant as well, and costly for the 32-bit Primary. So we get the size by directly using the available Primary functions. Finally, change a `int` to `uptr` to avoid a warning/error when compiling on Android. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34782 llvm-svn: 306698
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud