diff options
author | Kostya Serebryany <kcc@google.com> | 2017-12-06 23:35:02 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-12-06 23:35:02 +0000 |
commit | a97bd9a7d3bf98ce7af9cc918212470583dd7f87 (patch) | |
tree | c8928358dd936954bfeb32d485624da88784e840 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 492a5b483067843a6920b9157999eacdf570d9ff (diff) | |
download | llvm-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