]> Cypherpunks repositories - gostls13.git/commit
runtime: start GC background sweep eagerly
authorRuss Cox <rsc@golang.org>
Thu, 5 Mar 2015 21:04:17 +0000 (16:04 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 5 Mar 2015 21:41:55 +0000 (21:41 +0000)
commit5789b28525cc7565aacc0394824bc58f92fd97e6
tree5c5d757165fa990b649eccf491c087fa66dfa52b
parent632217aae47f8abd2fe8487068367a5bb5f9ea0a
runtime: start GC background sweep eagerly

Starting it lazily causes a memory allocation (for the goroutine) during GC.

First use of channels for runtime implementation.

Change-Id: I9cd24dcadbbf0ee5070ee6d0ed7ea415504f316c
Reviewed-on: https://go-review.googlesource.com/6960
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgc.go
src/runtime/mgcsweep.go
src/runtime/proc.go