From: Alex Brainman Date: Fri, 1 May 2015 05:53:45 +0000 (+1000) Subject: runtime: fix stackDebug comment X-Git-Tag: go1.5beta1~780 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=031c3bc9ae9412caf8a31fc95c5384c93fe5a7b7;p=gostls13.git runtime: fix stackDebug comment Change-Id: Ia9191bd7ecdf7bd5ee7d69ae23aa71760f379aa8 Reviewed-on: https://go-review.googlesource.com/9590 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/runtime/chan_test.go b/src/runtime/chan_test.go index 0b918bb99f..9119371d5c 100644 --- a/src/runtime/chan_test.go +++ b/src/runtime/chan_test.go @@ -528,7 +528,7 @@ func TestMultiConsumer(t *testing.T) { func TestShrinkStackDuringBlockedSend(t *testing.T) { // make sure that channel operations still work when we are // blocked on a channel send and we shrink the stack. - // NOTE: this test probably won't fail unless stack1.go:StackDebug + // NOTE: this test probably won't fail unless stack1.go:stackDebug // is set to >= 1. const n = 10 c := make(chan int) diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go index 4fa1a58ea8..f74694b7e9 100644 --- a/src/runtime/stack1.go +++ b/src/runtime/stack1.go @@ -7,7 +7,7 @@ package runtime import "unsafe" const ( - // StackDebug == 0: no logging + // stackDebug == 0: no logging // == 1: logging of per-stack operations // == 2: logging of per-frame operations // == 3: logging of per-word updates