]> Cypherpunks repositories - gostls13.git/commit
runtime: add pointer size to type structure
authorAustin Clements <austin@google.com>
Mon, 4 May 2015 18:37:45 +0000 (14:37 -0400)
committerAustin Clements <austin@google.com>
Mon, 4 May 2015 20:17:48 +0000 (20:17 +0000)
commit98a9d3683705b21fdcffe0291826de7611891167
treea009cb28606df758a3caeed9ce2c384cbbdcf77c
parent91938fd1ca0e1ed15fdda2552155216a28bdb8f4
runtime: add pointer size to type structure

This adds a field to the runtime type structure that records the size
of the prefix of objects of that type containing pointers. Any data
after this offset is scalar data.

This is necessary for shrinking the type bitmaps to 1 bit and will
help the garbage collector efficiently estimate the amount of heap
that needs to be scanned.

Change-Id: I1318d79e6360dca0ac980245016c562e61f52ff5
Reviewed-on: https://go-review.googlesource.com/9691
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/gc/reflect.go
src/cmd/internal/ld/decodesym.go
src/reflect/type.go
src/runtime/type.go