]> Cypherpunks repositories - gostls13.git/commit
runtime: add GODEBUG option for an electric fence like heap mode
authorCarl Shapiro <cshapiro@google.com>
Fri, 6 Dec 2013 22:40:45 +0000 (14:40 -0800)
committerCarl Shapiro <cshapiro@google.com>
Fri, 6 Dec 2013 22:40:45 +0000 (14:40 -0800)
commit76c54c11935121d1c8f4158f900366d68f9a76d8
tree69bbe18a27f0421639df72c4d1b5fef783950945
parenta5cc5bab5a8ead995d5eb51ee0991635eeab15ed
runtime: add GODEBUG option for an electric fence like heap mode

When enabled this new debugging mode will allocate objects on
their own page and never recycle memory addresses.  This is an
essential tool to root cause a broad class of heap corruption.

R=golang-dev, dave, daniel.morsing, dvyukov, rsc, iant, cshapiro
CC=golang-dev
https://golang.org/cl/22060046
src/pkg/runtime/extern.go
src/pkg/runtime/malloc.goc
src/pkg/runtime/mgc0.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h