mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user