]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: make bitmaps shorter
authorRuss Cox <rsc@golang.org>
Thu, 8 Aug 2013 20:38:02 +0000 (16:38 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 8 Aug 2013 20:38:02 +0000 (16:38 -0400)
commitf91e682cca2eb51a0a8b1511678a5e2b4d8a83de
tree086d471a5ea337c6437574b52f8c98019475eb5e
parent9a9e541c4db86bb1c590b0f4657929dde4312e2b
cmd/gc: make bitmaps shorter

Sort non-pointer-containing data to the low end of the
stack frame, and make the bitmaps only cover the
pointer-containing top end.

Generates significantly less garbage collection bitmap
for programs with large byte buffers on the stack.

Only 2% shorter for godoc, but 99.99998% shorter
in some test cases.

Fixes arm build.

TBR=golang-dev
CC=cshapiro, golang-dev, iant
https://golang.org/cl/12541047
src/cmd/gc/go.h
src/cmd/gc/pgen.c
src/cmd/gc/reflect.c