Set the minimum stack size for private state thread to 8MB

Demangling complex Boost symbols can exhaust the default stack size.  In practice, any thread that calls into LLDB functionality that touches symbols runs this risk.  Guaranteeing a reasonable minimum for our own private state thread addressees some known scenarios debugging processes that make use of cpp-netlib.

llvm-svn: 255868
This commit is contained in:
Kate Stone 2015-12-17 01:37:00 +00:00
parent b9e8d483b5
commit ef8b4e22f7
1 changed files with 1 additions and 1 deletions

View File

@ -4070,7 +4070,7 @@ Process::StartPrivateStateThread (bool is_secondary_thread)
// Create the private state thread, and start it running.
PrivateStateThreadArgs args = {this, is_secondary_thread};
m_private_state_thread = ThreadLauncher::LaunchThread(thread_name, Process::PrivateStateThread, (void *) &args, NULL);
m_private_state_thread = ThreadLauncher::LaunchThread(thread_name, Process::PrivateStateThread, (void *) &args, NULL, 8 * 1024 * 1024);
if (m_private_state_thread.IsJoinable())
{
ResumePrivateStateThread();