]> Cypherpunks repositories - gostls13.git/commit
runtime: clear stale values from G.param and SudoG.elem
authorRuss Cox <rsc@golang.org>
Fri, 3 Oct 2014 17:36:48 +0000 (13:36 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 3 Oct 2014 17:36:48 +0000 (13:36 -0400)
commit0120f8378d4de043471fc948fca765abd51a9f4c
tree343b7bdae992700ba5c672b39c2aa9fed9344e24
parent3ffd29fb2cfeee77c7f58fcae3496665695eb938
runtime: clear stale values from G.param and SudoG.elem

This change was necessary on the dev.garbage branch
to keep the garbage collector from seeing pointers into
invalid heap areas.

On this default (Go 1.4) branch, the change removes
some possibility for memory leaks.

LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, iant, r, rlh
https://golang.org/cl/155760043
src/runtime/chan.go
src/runtime/proc.go
src/runtime/select.go
src/runtime/sema.go