]> Cypherpunks repositories - gostls13.git/commit
runtime: introduce MSpan.needzero instead of writing to span data
authorRuss Cox <rsc@golang.org>
Thu, 13 Feb 2014 16:10:31 +0000 (11:10 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 13 Feb 2014 16:10:31 +0000 (11:10 -0500)
commit86e3cb8da5a22794bbbdf34e934dc180e1c86d01
treed3a0b21626194ee16c8ec50568040f28c2586566
parentf8e4a2ef94f852c9f112e118f4d266b97839c3c9
runtime: introduce MSpan.needzero instead of writing to span data

This cleans up the code significantly, and it avoids any
possible problems with madvise zeroing out some but
not all of the data.

Fixes #6400.

LGTM=dave
R=dvyukov, dave
CC=golang-codereviews
https://golang.org/cl/57680046
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mcentral.c
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c