Could someone please give clarification values returned from the goroutine. Does the returned value from the goroutine is getting stored on stake.
example :
Unlike most of the other programming languages, Go routine does not use stack for storing result and return address. It has a special memory allocation for that which destroys itself after execution is completed. you can see details about it in Rob Pike's(founder of golang)talk. visit this link for the youtube video: https://www.youtube.com/watch?v=f6kdp27TYZs&index=4&list=LLRA7nvHOCb4nuU7byESOYIg