summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.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 /clang/lib/Parse/ParseDecl.cpp
parent492a5b483067843a6920b9157999eacdf570d9ff (diff)
downloadbcm5719-llvm-a97bd9a7d3bf98ce7af9cc918212470583dd7f87.tar.gz
bcm5719-llvm-a97bd9a7d3bf98ce7af9cc918212470583dd7f87.zip
[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 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud