Skip to content

Commit

Permalink
runtime: align first persistentalloc chunk as requested
Browse files Browse the repository at this point in the history
Change-Id: Ib391e019b1a7513d234fb1c8ff802efe8fa7c950
Reviewed-on: https://go-review.googlesource.com/c/go/+/163859
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Austin Clements <[email protected]>
  • Loading branch information
ianlancetaylor committed Mar 6, 2019
1 parent 711ea1e commit c5babcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/malloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ func persistentalloc1(size, align uintptr, sysStat *uint64) *notInHeap {
break
}
}
persistent.off = sys.PtrSize
persistent.off = round(sys.PtrSize, align)
}
p := persistent.base.add(persistent.off)
persistent.off += size
Expand Down

0 comments on commit c5babcc

Please sign in to comment.