Fixing overallocation of thread stacks (expending heap).

This commit is contained in:
Ben Vanik 2014-08-05 12:05:45 -07:00
parent 1d7b08b85b
commit 31f886d8d9
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ XThread::XThread(KernelState* kernel_state,
creation_params_.creation_flags = creation_flags;
// Adjust stack size - min of 16k.
if (creation_params_.stack_size < 16 * 1024 * 1024) {
creation_params_.stack_size = 16 * 1024 * 1024;
if (creation_params_.stack_size < 16 * 1024) {
creation_params_.stack_size = 16 * 1024;
}
apc_lock_ = xe_mutex_alloc();