Re:Performance of green threads and why it matters
by ominous_prime on Sunday May 08, 2016 @04:18PM
(#11655565)
Go hasn't used segmented stacks in quite a while. Go now has 2k stacks and uses stack copying to grow.
In lthread I preallocate fixed size 1mb stack but madvise after a coroutine yields if the stack shrunk. No copies are needed but it does consume the vm address space.