summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2019-11-19 10:18:38 -0800
committerKostya Kortchinsky <kostyak@google.com>2019-11-21 10:05:39 -0800
commit46240c38721fe9919f9c63277bec7bbf3e62073b (patch)
tree1b15261c1dfe203be85fc62d1358c633ea56cd67 /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
parentbb775bee21258f93cd5844b3540c0ec2569c1e22 (diff)
downloadbcm5719-llvm-46240c38721fe9919f9c63277bec7bbf3e62073b.tar.gz
bcm5719-llvm-46240c38721fe9919f9c63277bec7bbf3e62073b.zip
[scudo][standalone] Minor optimization & improvements
Summary: A few small improvements and optimizations: - when refilling the free list, push back the last batch and return the front one: this allows to keep the allocations towards the front of the region; - instead of using 48 entries in the shuffle array, use a multiple of `MaxNumCached`; - make the maximum number of batches to create on refil a constant; ultimately it should be configurable, but that's for later; - `initCache` doesn't need to zero out the cache, it's already done. - it turns out that when using `||` or `&&`, the compiler is adamant on adding a short circuit for every part of the expression. Which ends up making somewhat annoying asm with lots of test and conditional jump. I am changing that to bitwise `|` or `&` in two place so that the generated code looks better. Added comments since it might feel weird to people. This yields to some small performance gains overall, nothing drastic though. Reviewers: hctim, morehouse, cferris, eugenis Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D70452
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud