diff options
Diffstat (limited to 'libgo/go/runtime/cgocheck.go')
-rw-r--r-- | libgo/go/runtime/cgocheck.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/cgocheck.go b/libgo/go/runtime/cgocheck.go index 09d444dbd1a..30f054b3633 100644 --- a/libgo/go/runtime/cgocheck.go +++ b/libgo/go/runtime/cgocheck.go @@ -125,7 +125,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 |