core.thread.Fiber --- runtime stack overflow unlike goroutines

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 21 16:29:53 PDT 2014


> Am I missing something? Is there a clean and simple way to get Fiber to
> no longer suffer a stack overflow when implementing D-routines?

Simply choose a big enough stack size when creating your fibers.
http://dlang.org/library/core/thread/Fiber.this.html

It's fairly cheap to use a really big stack like 4MB, because memory 
pages are committed lazily by the OS.


More information about the Digitalmars-d-learn mailing list