mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Only increase sigalthreads stack size for simulator or aarch64 builds.
The 12K-per-thread necessary on arm64 linux systems caused an unnecessary 180K increase in RAM usage on the hibyos hosted ports. So back off to the old size unless we know it was needed. Change-Id: I1e25417433052027ae02a51903b0f5245819db44
This commit is contained in:
parent
0222ed3639
commit
56ec2e2e4a
1 changed files with 5 additions and 1 deletions
|
@ -50,8 +50,12 @@ struct regs
|
|||
#ifndef MINSIGSTKSZ
|
||||
#define MINSIGSTKSZ 16384
|
||||
#endif
|
||||
/* MINSIGSTKSZ for the OS to deliver the signal + 0x6000 for us */
|
||||
/* MINSIGSTKSZ for the OS to deliver the signal, plus more for us */
|
||||
#if defined(SIMULATOR) || defined(__aarch64__)
|
||||
#define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x6000) /* Bytes */
|
||||
#else
|
||||
#define DEFAULT_STACK_SIZE (MINSIGSTKSZ+0x3000) /* Bytes */
|
||||
#endif
|
||||
#elif defined(HAVE_WIN32_FIBER_THREADS)
|
||||
#define DEFAULT_STACK_SIZE 0x1000 /* Bytes */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue