We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b40b6 commit a3b9797Copy full SHA for a3b9797
src/runtime/malloc.go
@@ -420,7 +420,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer {
420
sysMap((unsafe.Pointer)(p), n, h.arena_reserved, &memstats.heap_sys)
421
mHeap_MapBits(h, p+n)
422
mHeap_MapSpans(h, p+n)
423
- h.arena_used = p+n
+ h.arena_used = p + n
424
if raceenabled {
425
racemapshadow((unsafe.Pointer)(p), n)
426
}
@@ -456,7 +456,7 @@ func mHeap_SysAlloc(h *mheap, n uintptr) unsafe.Pointer {
456
if uintptr(p)+n > uintptr(h.arena_used) {
457
458
459
460
if p_end > h.arena_end {
461
h.arena_end = p_end
462
0 commit comments