diff options
| author | Austin Clements <austin@google.com> | 2017-03-16 14:16:31 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-04-13 18:20:30 +0000 |
| commit | 8fbaa4f70bf1bd2c2beb1bfdcce78863aaf08e0e (patch) | |
| tree | 99b919871c49359e5205367d26baa9527002ecdb /src/runtime/mbitmap.go | |
| parent | 16df2ccdedec47d0be940702bb064f656091bd28 (diff) | |
| download | go-8fbaa4f70bf1bd2c2beb1bfdcce78863aaf08e0e.tar.xz | |
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/mbitmap.go')
| -rw-r--r-- | src/runtime/mbitmap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index e2add26b06..eb36450508 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -391,7 +391,7 @@ func heapBitsForObject(p, refBase, refOff uintptr) (base uintptr, hbits heapBits // Consult the span table to find the block beginning. s = mheap_.spans[idx] if s == nil || p < s.base() || p >= s.limit || s.state != mSpanInUse { - if s == nil || s.state == _MSpanStack { + if s == nil || s.state == _MSpanManual { // If s is nil, the virtual address has never been part of the heap. // This pointer may be to some mmap'd region, so we allow it. // Pointers into stacks are also ok, the runtime manages these explicitly. |
