diff options
| author | Carl Shapiro <cshapiro@google.com> | 2013-12-06 14:40:45 -0800 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2013-12-06 14:40:45 -0800 |
| commit | 76c54c11935121d1c8f4158f900366d68f9a76d8 (patch) | |
| tree | 69bbe18a27f0421639df72c4d1b5fef783950945 /src/pkg/runtime/runtime.c | |
| parent | a5cc5bab5a8ead995d5eb51ee0991635eeab15ed (diff) | |
| download | go-76c54c11935121d1c8f4158f900366d68f9a76d8.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 63b78eb55f..9a8eb0e340 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -388,6 +388,7 @@ static struct { int32* value; } dbgvar[] = { {"allocfreetrace", &runtime·debug.allocfreetrace}, + {"efence", &runtime·debug.efence}, {"gctrace", &runtime·debug.gctrace}, {"scheddetail", &runtime·debug.scheddetail}, {"schedtrace", &runtime·debug.schedtrace}, |
