]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: add zeroing to enable precise stack accounting
authorRuss Cox <rsc@golang.org>
Fri, 24 Jan 2014 04:11:04 +0000 (23:11 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 24 Jan 2014 04:11:04 +0000 (23:11 -0500)
commita81692e2650fce39bebd77224f4153a326460286
treee89375226530b1f100f29250f3178b5a75351f01
parentb377c9c6a9b720d0897d298652bebd3887ceeb46
cmd/gc: add zeroing to enable precise stack accounting

There is more zeroing than I would like right now -
temporaries used for the new map and channel runtime
calls need to be eliminated - but it will do for now.

This CL only has an effect if you are building with

        GOEXPERIMENT=precisestack ./all.bash

(or make.bash). It costs about 5% in the overall time
spent in all.bash. That number will come down before
we make it on by default, but this should be enough for
Keith to try using the precise maps for copying stacks.

amd64 only (and it's not really great generated code).

TBR=khr, iant
CC=golang-codereviews
https://golang.org/cl/56430043
src/cmd/6g/ggen.c
src/cmd/gc/plive.c
src/pkg/runtime/mgc0.c