aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgocheck.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-03-16 14:16:31 -0400
committerAustin Clements <austin@google.com>2017-04-13 18:20:30 +0000
commit8fbaa4f70bf1bd2c2beb1bfdcce78863aaf08e0e (patch)
tree99b919871c49359e5205367d26baa9527002ecdb /src/runtime/cgocheck.go
parent16df2ccdedec47d0be940702bb064f656091bd28 (diff)
downloadgo-8fbaa4f70bf1bd2c2beb1bfdcce78863aaf08e0e.tar.gz
go-8fbaa4f70bf1bd2c2beb1bfdcce78863aaf08e0e.zip
runtime: rename _MSpanStack -> _MSpanManual
We're about to generalize _MSpanStack to be used for other forms of in-heap manual memory management in the runtime. This is an automated rename of _MSpanStack to _MSpanManual plus some comment fix-ups. For #19325. Change-Id: I1e20a57bb3b87a0d324382f92a3e294ffc767395 Reviewed-on: https://go-review.googlesource.com/38574 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@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 8cac5d994d..61aaa0a8f7 100644
--- a/src/runtime/cgocheck.go
+++ b/src/runtime/cgocheck.go
@@ -124,7 +124,7 @@ func cgoCheckTypedBlock(typ *_type, src unsafe.Pointer, off, size uintptr) {
aoff := uintptr(src) - mheap_.arena_start
idx := aoff >> _PageShift
s := mheap_.spans[idx]
- if s.state == _MSpanStack {
+ 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