aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgocheck.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-09-26 16:39:02 -0400
committerAustin Clements <austin@google.com>2018-09-26 20:51:07 +0000
commit5a8c11ce3e7a87485defafb78c7bcf14f9d7b5a2 (patch)
tree5960473e4a10a37ab8303d71a07a21f6432a27c5 /src/runtime/cgocheck.go
parent9eb53ab9bc3b89d960c23ab47b3d7bc3fc201fd7 (diff)
downloadgo-5a8c11ce3e7a87485defafb78c7bcf14f9d7b5a2.tar.gz
go-5a8c11ce3e7a87485defafb78c7bcf14f9d7b5a2.zip
runtime: rename _MSpan* constants to mSpan*
We already aliased mSpanInUse to _MSpanInUse. The dual constants are getting annoying, so fix all of these to use the mSpan* naming convention. This was done automatically with: sed -i -re 's/_?MSpan(Dead|InUse|Manual|Free)/mSpan\1/g' *.go plus deleting the existing definition of mSpanInUse. Change-Id: I09979d9d491d06c10689cea625dc57faa9cc6767 Reviewed-on: https://go-review.googlesource.com/137875 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/cgocheck.go')
-rw-r--r--src/runtime/cgocheck.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgocheck.go b/src/runtime/cgocheck.go
index 73cb6ecae2..ac57e0344e 100644
--- a/src/runtime/cgocheck.go
+++ b/src/runtime/cgocheck.go
@@ -126,7 +126,7 @@ func cgoCheckTypedBlock(typ *_type, src unsafe.Pointer, off, size uintptr) {
}
s := spanOfUnchecked(uintptr(src))
- if s.state == _MSpanManual {
+ if s.state == mSpanManual {
// There are no heap bits for value stored on the stack.
// For a channel receive src might be on the stack of some
// other goroutine, so we can't unwind the stack even if