1.1 KiB
1.1 KiB
libkernel_sys
change [pthread_set_defaultstacksize_np and scePthreadSetDefaultstacksize]
- pthread_set_defaultstacksize_np and scePthreadSetDefaultstacksize (libkernel_sys) set the stack size that
scePthreadAttrInitand a thread created without attributes use, as fpPS4'spthread_set_defaultstacksize_npdoes: a size below 16384 bytes fails withEINVAL(0x80020016from the sce form) and there is no upper limit, so a default the host cannot allocate fails only when a thread is created. Attributes initialised earlier keep their size. A PS5 payload process (firmware 11.60, probelibkernel_sys_defaultstacksize, build2342e46b5599) accepted 16384 and 16385 (thepthread_set_defaultstacksize_npform was measured only with these two), refused 16383 and 0 throughscePthreadSetDefaultstacksizeand accepted 0x40000000 and 0xfffffffffffff000, as here; its fresh attributes report 0x10000, where this library starts at 1 MiB