mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
9eb53ab9bc
commit
5a8c11ce3e
10 changed files with 47 additions and 49 deletions
|
|
@ -211,7 +211,7 @@ func stackpoolalloc(order uint8) gclinkptr {
|
|||
// Adds stack x to the free pool. Must be called with stackpoolmu held.
|
||||
func stackpoolfree(x gclinkptr, order uint8) {
|
||||
s := spanOfUnchecked(uintptr(x))
|
||||
if s.state != _MSpanManual {
|
||||
if s.state != mSpanManual {
|
||||
throw("freeing stack not in a stack span")
|
||||
}
|
||||
if s.manualFreeList.ptr() == nil {
|
||||
|
|
@ -459,7 +459,7 @@ func stackfree(stk stack) {
|
|||
}
|
||||
} else {
|
||||
s := spanOfUnchecked(uintptr(v))
|
||||
if s.state != _MSpanManual {
|
||||
if s.state != mSpanManual {
|
||||
println(hex(s.base()), v)
|
||||
throw("bad span state")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue