diff options
| author | Russ Cox <rsc@golang.org> | 2015-06-05 11:51:49 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-15 17:31:04 +0000 |
| commit | d5b40b6ac261c987244ba0131c272b0b7ebc25cf (patch) | |
| tree | d0c87e78840d9a812d33f10414cddc125a89ecb9 /src/runtime/stack1.go | |
| parent | 80ec7117551f009edba6eb16b34b85cfe6ba2f4f (diff) | |
| download | go-d5b40b6ac261c987244ba0131c272b0b7ebc25cf.tar.xz | |
runtime: add GODEBUG gcshrinkstackoff, gcstackbarrieroff, and gcstoptheworld variables
While we're here, update the documentation and delete variables with no effect.
Change-Id: I4df0d266dff880df61b488ed547c2870205862f0
Reviewed-on: https://go-review.googlesource.com/10790
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/stack1.go')
| -rw-r--r-- | src/runtime/stack1.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go index 1965e9e262..933e3d0b28 100644 --- a/src/runtime/stack1.go +++ b/src/runtime/stack1.go @@ -826,6 +826,10 @@ func shrinkstack(gp *g) { throw("missing stack in shrinkstack") } + if debug.gcshrinkstackoff > 0 { + return + } + oldsize := gp.stackAlloc newsize := oldsize / 2 if newsize < _FixedStack { |
