summaryrefslogtreecommitdiff
path: root/lib/ubsan_minimal/ubsan_minimal_handlers.cc
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
commit3c704eefe1dfb7f35e80b8af9bd80c6eeaf7d5de (patch)
treef871be646ec5b05b30f4cef39a7567ce791e6259 /lib/ubsan_minimal/ubsan_minimal_handlers.cc
parent449a4dcf7471c04cb5bb3ea53ca2c9c318374d4e (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/ubsan_minimal/ubsan_minimal_handlers.cc')
0 files changed, 0 insertions, 0 deletions