mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
16df2ccded
commit
8fbaa4f70b
5 changed files with 23 additions and 21 deletions
|
|
@ -220,7 +220,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 := mheap_.lookup(unsafe.Pointer(x))
|
||||
if s.state != _MSpanStack {
|
||||
if s.state != _MSpanManual {
|
||||
throw("freeing stack not in a stack span")
|
||||
}
|
||||
if s.stackfreelist.ptr() == nil {
|
||||
|
|
@ -465,7 +465,7 @@ func stackfree(stk stack) {
|
|||
}
|
||||
} else {
|
||||
s := mheap_.lookup(v)
|
||||
if s.state != _MSpanStack {
|
||||
if s.state != _MSpanManual {
|
||||
println(hex(s.base()), v)
|
||||
throw("bad span state")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue