mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 17:02:40 +00:00
pthread: Change minimum stack for HLE to additional stack.
This commit is contained in:
parent
ee974414d2
commit
deecd3d4cf
@ -244,10 +244,9 @@ int PS4_SYSV_ABI posix_pthread_create_name_np(PthreadT* thread, const PthreadAtt
|
||||
new_thread->tid = ++TidCounter;
|
||||
|
||||
if (new_thread->attr.stackaddr_attr == 0) {
|
||||
/* Enforce minimum stack size of 128 KB */
|
||||
static constexpr size_t MinimumStack = 128_KB;
|
||||
auto& stacksize = new_thread->attr.stacksize_attr;
|
||||
stacksize = std::max(stacksize, MinimumStack);
|
||||
/* Add additional stack space for HLE */
|
||||
static constexpr size_t AdditionalStack = 128_KB;
|
||||
new_thread->attr.stacksize_attr += AdditionalStack;
|
||||
}
|
||||
|
||||
if (thread_state->CreateStack(&new_thread->attr) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user