Re: Crash when using coroutines
Posted: Thu Nov 28, 2019 5:13 pm
by setting a smaller stack size (Coroutines.SetStackSize) it should be possible to start a larger number of coroutines.
golang starts with a size of only 4KB and increases that on demand.
With the native Windows fibers being used for BlackBox coroutines the minimum stack size is somewhere at 64 KB,
if I remember correctly. The native Windows fibers also grow on demand up to the specified max size but the
virtual memory space is reserved even if it is never fully committed.
- Josef
golang starts with a size of only 4KB and increases that on demand.
With the native Windows fibers being used for BlackBox coroutines the minimum stack size is somewhere at 64 KB,
if I remember correctly. The native Windows fibers also grow on demand up to the specified max size but the
virtual memory space is reserved even if it is never fully committed.
- Josef