aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/CoverageMappingTest.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-12-06 23:35:02 +0000
committerKostya Serebryany <kcc@google.com>2017-12-06 23:35:02 +0000
commita97bd9a7d3bf98ce7af9cc918212470583dd7f87 (patch)
treec8928358dd936954bfeb32d485624da88784e840 /llvm/unittests/ProfileData/CoverageMappingTest.cpp
parent492a5b483067843a6920b9157999eacdf570d9ff (diff)
downloadllvm-a97bd9a7d3bf98ce7af9cc918212470583dd7f87.zip
llvm-a97bd9a7d3bf98ce7af9cc918212470583dd7f87.tar.gz
llvm-a97bd9a7d3bf98ce7af9cc918212470583dd7f87.tar.bz2
[libFuzzer] Decrease stack usage in unit tests
Summary: With 3 Dictionary objects, each containing space of ~16k DictionaryEntry objects, the MutationDispatcher object is fairly memory heavy. On platforms with a lower default stack size, this can cause panics in FuzzerUnittest as those tests stack-allocate the MutationDispatcher. This may be especially problematic for platforms that do not (yet) have a way to programmatically change their stack size, aside from link-time flags. In general, it seems more prudent to use the heap for an object of this size. Reviewers: kcc, morehouse Reviewed By: kcc Differential Revision: https://reviews.llvm.org/D40926 llvm-svn: 319988
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
0 files changed, 0 insertions, 0 deletions