summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-05-23 16:55:43 +0000
committerRui Ueyama <ruiu@google.com>2016-05-23 16:55:43 +0000
commitb91bf1a9a0843ce538b5f7231aaadd321a82e99b (patch)
tree6d16bc616ec08bebab2cbbde4746621ba5a18266 /lldb/packages/Python/lldbsuite/test
parent45fe81fb64e379534d9c271eb5bb1fb238b435d0 (diff)
downloadbcm5719-llvm-b91bf1a9a0843ce538b5f7231aaadd321a82e99b.tar.gz
bcm5719-llvm-b91bf1a9a0843ce538b5f7231aaadd321a82e99b.zip
Do not split mergeable sections if they are gc'ed.
Previously, mergeable section's constructors did more than just setting member variables; it split section contents into small pieces. It is not always computationally cheap task because if the section is a mergeable string section, it needs to scan the entire section to split them by NUL characters. If a section would be thrown away by GC, that cost ended up being a waste of time. It is going to be larger problem if the section is compressed -- the whole time to uncompress it and split it up is going to be a waste. Luckily, we can defer section splitting after GC. We just have to remember which offsets are in use during GC and apply that later. This patch implements it. Differential Revision: http://reviews.llvm.org/D20516 llvm-svn: 270455
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud