]> Cypherpunks repositories - gostls13.git/commit
runtime: use special records hung off the MSpan to
authorKeith Randall <khr@golang.org>
Tue, 7 Jan 2014 21:45:50 +0000 (13:45 -0800)
committerKeith Randall <khr@golang.org>
Tue, 7 Jan 2014 21:45:50 +0000 (13:45 -0800)
commit020b39c3f3d3826d02c735c29d1dae7282aeb3f7
treeb84e0d2dd661a351233b6eed20a7f4466ec4dfe3
parentaffab3f3128558dd808247f01abfee4b2bfee712
runtime: use special records hung off the MSpan to
record finalizers and heap profile info.  Enables
removing the special bit from the heap bitmap.  Also
provides a generic mechanism for annotating occasional
heap objects.

finalizers
        overhead      per obj
old 680 B       80 B avg
new 16 B/span     48 B

profile
        overhead      per obj
old 32KB       24 B + hash tables
new 16 B/span     24 B

R=cshapiro, khr, dvyukov, gobot
CC=golang-codereviews
https://golang.org/cl/13314053
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mfinal.c [deleted file]
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/mprof.goc
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/type.h