]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] runtime: make sure G.param and SudoG.elem do not hold stale pointers
authorRuss Cox <rsc@golang.org>
Thu, 2 Oct 2014 20:49:11 +0000 (16:49 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 2 Oct 2014 20:49:11 +0000 (16:49 -0400)
commita3630c9e4419a550af224541e55a0ca6be6f551c
tree7f7c962952acfe622dfad4a770ce733f63a176be
parentfdb0cc6e7b68f6bf7726a69caa0e3947c0af141d
[dev.garbage] runtime: make sure G.param and SudoG.elem do not hold stale pointers

In old conservative Go, this could cause memory leaks.
A new pickier collector might reasonably crash when it saw one of these.

LGTM=rlh
R=rlh
CC=golang-codereviews
https://golang.org/cl/147480043
src/runtime/chan.go
src/runtime/proc.go
src/runtime/select.go
src/runtime/sema.go