devkitPro / wut

Let's try to make a Wii U Toolchain / SDK for creating rpx/rpl.
zlib License
236 stars 52 forks source link

wutstdc++: Decrease the stack size for gthread threads from 4 MiB to 128 KiB #269

Closed Maschell closed 2 years ago

Maschell commented 2 years ago

At the moment the default stack size for threads is 4MiB, which seems to be way to much. Especially if you use threads in aroma modules/plugins where memory will be very limited (only ~60MiB for all plugins/modules code, data and heap).

For reference: The stack size for the default Cafe OS thread is 64Kib.

The actual value for the new stack size is open for discussion