aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mbitmap.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-11-11 16:13:51 -0800
committerMatthew Dempsky <mdempsky@google.com>2015-11-12 00:34:58 +0000
commitc17c42e8a5232d7e56225caf9048cfa89f6923d0 (patch)
tree56397252fa1c17f3243e000fa497c97e207cde82 /src/runtime/mbitmap.go
parent58db5fc94d6038aa0308fc36c25b551a751260c2 (diff)
downloadgo-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/mbitmap.go')
-rw-r--r--src/runtime/mbitmap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go
index 11cb6e2c6c..ba123eafea 100644
--- a/src/runtime/mbitmap.go
+++ b/src/runtime/mbitmap.go
@@ -131,7 +131,7 @@ func subtract1(p *byte) *byte {
// after observing the change to arena_used.
//
//go:nowritebarrier
-func mHeap_MapBits(h *mheap, arena_used uintptr) {
+func (h *mheap) mapBits(arena_used uintptr) {
// Caller has added extra mappings to the arena.
// Add extra mappings of bitmap words as needed.
// We allocate extra bitmap pieces in chunks of bitmapChunk.