2 ms·
If anyone's curious, here are the links to the source code for the functions referenced in the article: * GC: https://github.com/golang/go/blob/go1.16/src/runt
by throwaway894345 5y ago
If anyone's curious, here are the links to the source code for the functions referenced in the article:
* GC: https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#L1126 https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#...
* gcWaitOnMark: https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#L1201 https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#...
* gcSweep: https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#L2170 https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#...