mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 08:50:28 +00:00
Don't allow to small stack for native thread
This commit is contained in:
parent
58cd4119a6
commit
ed551d1eb3
@ -293,6 +293,8 @@ EXPORT int my_pthread_create(x86emu_t *emu, void* t, void* attr, void* start_rou
|
||||
size_t stsize;
|
||||
if(pthread_attr_getstacksize(attr, &stsize)==0)
|
||||
stacksize = stsize;
|
||||
if(stsize<512*1024) // emu and all needs some stack space, don't go too low
|
||||
pthread_attr_setstacksize(attr, 512*1024);
|
||||
}
|
||||
if(GetStackSize(emu, (uintptr_t)attr, &attr_stack, &attr_stacksize))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user