Skip to content

Commit a3b9797

Browse files
committed
runtime: gofmt
Change-Id: I539bdc438f694610a7cd373f7e1451171737cfb3 Reviewed-on: https://go-review.googlesource.com/11084 Reviewed-by: Russ Cox <[email protected]>
1 parent d5b40b6 commit a3b9797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/malloc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer {
420420
sysMap((unsafe.Pointer)(p), n, h.arena_reserved, &memstats.heap_sys)
421421
mHeap_MapBits(h, p+n)
422422
mHeap_MapSpans(h, p+n)
423-
h.arena_used = p+n
423+
h.arena_used = p + n
424424
if raceenabled {
425425
racemapshadow((unsafe.Pointer)(p), n)
426426
}
@@ -456,7 +456,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer {
456456
if uintptr(p)+n > uintptr(h.arena_used) {
457457
mHeap_MapBits(h, p+n)
458458
mHeap_MapSpans(h, p+n)
459-
h.arena_used = p+n
459+
h.arena_used = p + n
460460
if p_end > h.arena_end {
461461
h.arena_end = p_end
462462
}

0 commit comments

Comments
 (0)