diff options
author | Zachary Turner <zturner@google.com> | 2014-10-24 22:06:29 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-10-24 22:06:29 +0000 |
commit | 7c2896a234e765c49f885d7689079a97b1651e32 (patch) | |
tree | 63c940aace2d7ba4b8592430dd8eea97cfcc2c84 /lldb/source/Host/common/ThreadLauncher.cpp | |
parent | 4b9d964925d3b8c798185c8f66c22d3f11e40537 (diff) | |
download | bcm5719-llvm-7c2896a234e765c49f885d7689079a97b1651e32.tar.gz bcm5719-llvm-7c2896a234e765c49f885d7689079a97b1651e32.zip |
Implement explicit thread stack size specification on Windows.
llvm-svn: 220596
Diffstat (limited to 'lldb/source/Host/common/ThreadLauncher.cpp')
-rw-r--r-- | lldb/source/Host/common/ThreadLauncher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/common/ThreadLauncher.cpp b/lldb/source/Host/common/ThreadLauncher.cpp index d9fe21e1bc5..ec7da325bf9 100644 --- a/lldb/source/Host/common/ThreadLauncher.cpp +++ b/lldb/source/Host/common/ThreadLauncher.cpp @@ -32,7 +32,8 @@ ThreadLauncher::LaunchThread(llvm::StringRef name, lldb::thread_func_t thread_fu HostThreadCreateInfo *info_ptr = new HostThreadCreateInfo(name.data(), thread_function, thread_arg); lldb::thread_t thread; #ifdef _WIN32 - thread = (lldb::thread_t)::_beginthreadex(0, 0, HostNativeThread::ThreadCreateTrampoline, info_ptr, 0, NULL); + thread = + (lldb::thread_t)::_beginthreadex(0, (unsigned)min_stack_byte_size, HostNativeThread::ThreadCreateTrampoline, info_ptr, 0, NULL); if (thread == (lldb::thread_t)(-1L)) error.SetError(::GetLastError(), eErrorTypeWin32); #else |