]> Cypherpunks repositories - gostls13.git/commit
runtime: rewrite lots of foo_Bar(f, ...) into f.bar(...)
authorMatthew Dempsky <mdempsky@google.com>
Thu, 12 Nov 2015 00:13:51 +0000 (16:13 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 12 Nov 2015 00:34:58 +0000 (00:34 +0000)
commitc17c42e8a5232d7e56225caf9048cfa89f6923d0
tree56397252fa1c17f3243e000fa497c97e207cde82
parent58db5fc94d6038aa0308fc36c25b551a751260c2
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>
src/runtime/heapdump.go
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mcache.go
src/runtime/mcentral.go
src/runtime/mfixalloc.go
src/runtime/mgcsweep.go
src/runtime/mheap.go
src/runtime/mstats.go
src/runtime/proc.go
src/runtime/stack.go