Skip to content

Commit 44fe446

Browse files
committed
Increase the amount of memory we allow the constraint solver to use.
Various changes throughout the compiler and libraries appear to have resulted in an increase in memory usage in the constraint solver since Swift 2.2. This is a stop-gap measure to allow more expressions to compile while the expression type checker is being improved. We've seen several cases where even a modest increase allows things that compiled with Swift 2.2 to continue to compile (albeit with generally longer compile times). (cherry picked from commit 8886f77)
1 parent f1fd488 commit 44fe446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace swift {
131131

132132
/// \brief The upper bound, in bytes, of temporary data that can be
133133
/// allocated by the constraint solver.
134-
unsigned SolverMemoryThreshold = 15000000;
134+
unsigned SolverMemoryThreshold = 33554432; /* 32 * 1024 * 1024 */
135135

136136
/// \brief Perform all dynamic allocations using malloc/free instead of
137137
/// optimized custom allocator, so that memory debugging tools can be used.

0 commit comments

Comments
 (0)