diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2015-11-11 16:13:51 -0800 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2015-11-12 00:34:58 +0000 |
| commit | c17c42e8a5232d7e56225caf9048cfa89f6923d0 (patch) | |
| tree | 56397252fa1c17f3243e000fa497c97e207cde82 /src/runtime/heapdump.go | |
| parent | 58db5fc94d6038aa0308fc36c25b551a751260c2 (diff) | |
| download | go-c17c42e8a5232d7e56225caf9048cfa89f6923d0.tar.xz | |
runtime: rewrite lots of foo_Bar(f, ...) into f.bar(...)
Applies to types fixAlloc, mCache, mCentral, mHeap, mSpan, and
mSpanList.
Two special cases:
1. mHeap_Scavenge() previously didn't take an *mheap parameter, so it
was specially handled in this CL.
2. mHeap_Free() would have collided with mheap's "free" field, so it's
been renamed to (*mheap).freeSpan to parallel its underlying
(*mheap).freeSpanLocked method.
Change-Id: I325938554cca432c166fe9d9d689af2bbd68de4b
Reviewed-on: https://go-review.googlesource.com/16221
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/heapdump.go')
| -rw-r--r-- | src/runtime/heapdump.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/heapdump.go b/src/runtime/heapdump.go index f8f88c6515..0a62c6731d 100644 --- a/src/runtime/heapdump.go +++ b/src/runtime/heapdump.go @@ -643,7 +643,7 @@ func mdump() { for i := uintptr(0); i < uintptr(mheap_.nspan); i++ { s := h_allspans[i] if s.state == _MSpanInUse { - mSpan_EnsureSwept(s) + s.ensureSwept() } } memclr(unsafe.Pointer(&typecache), unsafe.Sizeof(typecache)) |
