]> Cypherpunks repositories - gostls13.git/commit
cmd/cc, cmd/gc, runtime: emit bitmaps for scanning locals.
authorCarl Shapiro <cshapiro@google.com>
Wed, 7 Aug 2013 19:47:01 +0000 (12:47 -0700)
committerCarl Shapiro <cshapiro@google.com>
Wed, 7 Aug 2013 19:47:01 +0000 (12:47 -0700)
commit73c93a404c16550ab1993aab1ce4a9b90c6f5772
tree17f77ddc00ffe4ee33b8d1b8520c242aa02c724c
parent0273dc131e4d5c63875824784e4240d0c8bb23bc
cmd/cc, cmd/gc, runtime: emit bitmaps for scanning locals.

Previously, all word aligned locations in the local variables
area were scanned as conservative roots.  With this change, a
bitmap is generated describing the locations of pointer values
in local variables.

With this change the argument bitmap information has been
changed to only store information about arguments.  The locals
member, has been removed.  In its place, the bitmap data for
local variables is now used to store the size of locals.  If
the size is negative, the magnitude indicates the size of the
local variables area.

R=rsc
CC=golang-dev
https://golang.org/cl/12328044
src/cmd/cc/pgen.c
src/cmd/gc/pgen.c
src/pkg/runtime/funcdata.h
src/pkg/runtime/mgc0.c