diff options
author | Kate Stone <katherine.stone@apple.com> | 2015-12-17 01:37:00 +0000 |
---|---|---|
committer | Kate Stone <katherine.stone@apple.com> | 2015-12-17 01:37:00 +0000 |
commit | ef8b4e22f7911a6e00efe471553107704c21564c (patch) | |
tree | 62d46d570cd7ea38f346e039ef9830cf785d594e /lldb/source/Target/Process.cpp | |
parent | b9e8d483b586ce3ed219872ee2d2ede2d58784de (diff) | |
download | bcm5719-llvm-ef8b4e22f7911a6e00efe471553107704c21564c.tar.gz bcm5719-llvm-ef8b4e22f7911a6e00efe471553107704c21564c.zip |
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
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 3297addbbfa..6bc9f2b0c9d 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -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(); |