We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e16b25 commit a20118bCopy full SHA for a20118b
lib/Frontend/ModuleInterfaceBuilder.cpp
@@ -153,6 +153,7 @@ bool ModuleInterfaceBuilder::buildSwiftModuleInternal(
153
auto outerPrettyStackState = llvm::SavePrettyStackState();
154
155
bool SubError = false;
156
+ static const size_t ThreadStackSize = 8 << 20; // 8 MB.
157
bool RunSuccess = llvm::CrashRecoveryContext().RunSafelyOnThread([&] {
158
// Pretend we're on the original thread for pretty-stack-trace purposes.
159
auto savedInnerPrettyStackState = llvm::SavePrettyStackState();
@@ -265,7 +266,7 @@ bool ModuleInterfaceBuilder::buildSwiftModuleInternal(
265
266
}
267
return std::error_code();
268
});
- });
269
+ }, ThreadStackSize);
270
return !RunSuccess || SubError;
271
272
0 commit comments