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 | 3c704eefe1dfb7f35e80b8af9bd80c6eeaf7d5de (patch) | |
tree | f871be646ec5b05b30f4cef39a7567ce791e6259 /lib/fuzzer/FuzzerExtFunctions.def | |
parent | 449a4dcf7471c04cb5bb3ea53ca2c9c318374d4e (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@319988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerExtFunctions.def')
0 files changed, 0 insertions, 0 deletions