forked from OSchip/llvm-project
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:
parent
b9e8d483b5
commit
ef8b4e22f7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue