>From the outputs of the following program, it looks the stack of a goroutine doesn't shrink immediately. Will it shrink at some point eventually?
package main func f(i int) byte { type T int // avoid f being inline var a [1<<20]byte // make stack grow return a[i] } func main(){ var x int println(&x) // 0xc000034770 f(100) println(&x) // 0xc0002fff70 // It looks the stack hasn't shrunk here. f(100) println(&x) // 0xc0002fff70 } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/40caa90b-84b3-45e1-bdc6-0f0a33bf06d5n%40googlegroups.com.