This might be https://github.com/golang/go/issues/34457 (at least, Brian's 
repro). When a goroutine finishes, we deallocate its stack, and that 
deallocation will eventually be given back to the OS.
The Goroutine descriptor, however, will live forever. We'll reuse it for 
new goroutines, but it never deallocates. Goroutine descriptors are 
currently 376 bytes (on 64-bit archs).

On Sunday, April 18, 2021 at 12:24:34 PM UTC-7 Brian Candler wrote:

> This is memory allocated as reported by go itself, not by the OS.

-- 
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/b6f2d95d-376c-4646-8d89-f5759b34e190n%40googlegroups.com.

Reply via email to