aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime1.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2019-01-02 18:47:06 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2019-01-02 20:55:53 +0000
commit22738f07c88ac9dd1159da15675fedeeba80c45d (patch)
tree64c273acf79371e6d155351bad7c92ac0d43b855 /src/runtime/runtime1.go
parent8e6396115e56d8e0cbecd6904f94c8d893db1724 (diff)
downloadgo-22738f07c88ac9dd1159da15675fedeeba80c45d.tar.gz
go-22738f07c88ac9dd1159da15675fedeeba80c45d.zip
runtime: add GODEBUG=madvdontneed=1
Fixes #28466 Change-Id: I05b2e0da09394d111913963b60f2ec865c9b4744 Reviewed-on: https://go-review.googlesource.com/c/155931 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/runtime1.go')
-rw-r--r--src/runtime/runtime1.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go
index 8b8f4dcb1e..c5667e73ad 100644
--- a/src/runtime/runtime1.go
+++ b/src/runtime/runtime1.go
@@ -308,6 +308,7 @@ var debug struct {
gcstoptheworld int32
gctrace int32
invalidptr int32
+ madvdontneed int32 // for Linux; issue 28466
sbrk int32
scavenge int32
scheddetail int32
@@ -325,6 +326,7 @@ var dbgvars = []dbgVar{
{"gcstoptheworld", &debug.gcstoptheworld},
{"gctrace", &debug.gctrace},
{"invalidptr", &debug.invalidptr},
+ {"madvdontneed", &debug.madvdontneed},
{"sbrk", &debug.sbrk},
{"scavenge", &debug.scavenge},
{"scheddetail", &debug.scheddetail},