diff options
| author | Russ Cox <rsc@golang.org> | 2015-06-15 13:35:56 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-15 17:36:34 +0000 |
| commit | a3b9797baa487224c5d5e1878057ec31e1f0df88 (patch) | |
| tree | 9295488b1a528eee7784d35f760a75ad9bddbcc0 /src/runtime | |
| parent | d5b40b6ac261c987244ba0131c272b0b7ebc25cf (diff) | |
| download | go-a3b9797baa487224c5d5e1878057ec31e1f0df88.tar.xz | |
runtime: gofmt
Change-Id: I539bdc438f694610a7cd373f7e1451171737cfb3
Reviewed-on: https://go-review.googlesource.com/11084
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/malloc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index d182ed62dc..3a0588216e 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -420,7 +420,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer { sysMap((unsafe.Pointer)(p), n, h.arena_reserved, &memstats.heap_sys) mHeap_MapBits(h, p+n) mHeap_MapSpans(h, p+n) - h.arena_used = p+n + h.arena_used = p + n if raceenabled { racemapshadow((unsafe.Pointer)(p), n) } @@ -456,7 +456,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer { if uintptr(p)+n > uintptr(h.arena_used) { mHeap_MapBits(h, p+n) mHeap_MapSpans(h, p+n) - h.arena_used = p+n + h.arena_used = p + n if p_end > h.arena_end { h.arena_end = p_end } |
