]> Cypherpunks repositories - gostls13.git/commit
runtime: zero pointer-looking scalararg values
authorKeith Randall <khr@golang.org>
Tue, 7 Oct 2014 22:21:00 +0000 (15:21 -0700)
committerKeith Randall <khr@golang.org>
Tue, 7 Oct 2014 22:21:00 +0000 (15:21 -0700)
commitdcc4a674d85fc2b0a434d71c1a504ebc559118bf
treec5ce6af1452c5defd06dded78725546e857f0e8d
parent6ea3746adfd924ef5a389165c22c0eaddd35ddf2
runtime: zero pointer-looking scalararg values

I have a CL which at every gc looks through data and bss
sections for nonpointer data (according to gc maps) that
looks like a pointer.  These are potential missing roots.

The only thing it finds are begnign, storing stack pointers
into m0.scalararg[1] and never cleaning them up.  Let's
clean them up now so the test CL passes all.bash cleanly.

The test CL can't be checked in because we might store
pointer-looking things in nonpointer data by accident.

LGTM=iant
R=golang-codereviews, iant, khr
CC=golang-codereviews
https://golang.org/cl/153210043
src/runtime/panic.c