]> Cypherpunks repositories - gostls13.git/commit
runtime: track "scannable" bytes of heap
authorAustin Clements <austin@google.com>
Mon, 4 May 2015 20:10:49 +0000 (16:10 -0400)
committerAustin Clements <austin@google.com>
Wed, 6 May 2015 19:40:33 +0000 (19:40 +0000)
commit3be3cbd5480187d279118b71633ee99a1996c5a2
tree571f266fbfca8d79a02234d9ac360b9576c466bd
parent53c53984e7ae789c3a1dda0ef4d8f6e760753faa
runtime: track "scannable" bytes of heap

This tracks the number of scannable bytes in the allocated heap. That
is, bytes that the garbage collector must scan before reaching the
last pointer field in each object.

This will be used to compute a more robust estimate of the GC scan
work.

Change-Id: I1eecd45ef9cdd65b69d2afb5db5da885c80086bb
Reviewed-on: https://go-review.googlesource.com/9695
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/malloc.go
src/runtime/mcache.go
src/runtime/mgc.go
src/runtime/mgcmark.go
src/runtime/mheap.go
src/runtime/mstats.go