From c17c42e8a5232d7e56225caf9048cfa89f6923d0 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 11 Nov 2015 16:13:51 -0800 Subject: 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 Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot --- src/runtime/mbitmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/mbitmap.go') 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. -- cgit v1.3-5-g9baa