[llvm-commits] [test-suite] r93751 - /test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
Bob Wilson
bob.wilson at apple.com
Mon Jan 18 11:29:53 PST 2010
Author: bwilson
Date: Mon Jan 18 13:29:52 2010
New Revision: 93751
URL: http://llvm.org/viewvc/llvm-project?rev=93751&view=rev
Log:
Change this test to avoid allocating a very large object (1MB) on the stack.
Modified:
test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
Modified: test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/minisat/Main.cpp?rev=93751&r1=93750&r2=93751&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/minisat/Main.cpp (original)
+++ test-suite/trunk/MultiSource/Applications/minisat/Main.cpp Mon Jan 18 13:29:52 2010
@@ -178,8 +178,12 @@
// Inserts problem into solver.
//
static void parse_DIMACS(FILE *input_stream, Solver& S) {
- StreamBuffer in(input_stream);
- parse_DIMACS_main(in, S); }
+ // LLVM: Allocate StreamBuffer on the heap instead of the stack so that
+ // this test can run on systems with limited stack size.
+ StreamBuffer *in = new StreamBuffer(input_stream);
+ parse_DIMACS_main(*in, S);
+ delete in;
+}
//=================================================================================================
More information about the llvm-commits
mailing list