fix stack overflow when page_size is not 4k
This commit is contained in:
@ -1645,7 +1645,7 @@ int ObServer::init_pre_setting()
|
||||
if (OB_SUCC(ret)) {
|
||||
const int64_t stack_size = std::max(1L << 19, static_cast<int64_t>(GCONF.stack_size));
|
||||
LOG_INFO("set stack_size", K(stack_size));
|
||||
global_thread_stack_size = lib::ProtectedStackAllocator::adjust_size(stack_size) - SIG_STACK_SIZE;
|
||||
global_thread_stack_size = stack_size - SIG_STACK_SIZE - ACHUNK_PRESERVE_SIZE;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user