]> Cypherpunks repositories - gostls13.git/commit
runtime: use debugSelect flag to toggle debug code
authorZhou Peng <p@ctriple.cn>
Wed, 16 May 2018 12:56:54 +0000 (12:56 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 May 2018 13:29:54 +0000 (13:29 +0000)
commitdbd66fd3d07433a03da5dc6c6def8c53951ada77
tree30ff5fe5a773de4f6ad361167560a5771ba03d2b
parenta0b70517729f6860ee1d6ef484575f8f298c4487
runtime: use debugSelect flag to toggle debug code

This block of code once was commented by the original author, but commenting
code looks a little annoying. However, the debugSelect flag is just for the
situation that debug code will be compiled when debuging, when release this
code will be eliminated by the compiler.

Change-Id: I7b94297e368b515116ef44a36058214ddddf9adb
Reviewed-on: https://go-review.googlesource.com/113395
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/select.go