]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: gofmt
authorRuss Cox <rsc@golang.org>
Mon, 15 Jun 2015 17:35:56 +0000 (13:35 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 15 Jun 2015 17:36:34 +0000 (17:36 +0000)
Change-Id: I539bdc438f694610a7cd373f7e1451171737cfb3
Reviewed-on: https://go-review.googlesource.com/11084
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/malloc.go

index d182ed62dcdde9455b82e9e19976cd049134aa4c..3a0588216e523e46ef3782f1a1f848f7b1fb479f 100644 (file)
@@ -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
                }