Commit c5babcc4 authored by Ian Lance Taylor's avatar Ian Lance Taylor

runtime: align first persistentalloc chunk as requested

Change-Id: Ib391e019b1a7513d234fb1c8ff802efe8fa7c950
Reviewed-on: https://go-review.googlesource.com/c/go/+/163859
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarAustin Clements <austin@google.com>
parent 711ea1e7
...@@ -1248,7 +1248,7 @@ func persistentalloc1(size, align uintptr, sysStat *uint64) *notInHeap { ...@@ -1248,7 +1248,7 @@ func persistentalloc1(size, align uintptr, sysStat *uint64) *notInHeap {
break break
} }
} }
persistent.off = sys.PtrSize persistent.off = round(sys.PtrSize, align)
} }
p := persistent.base.add(persistent.off) p := persistent.base.add(persistent.off)
persistent.off += size persistent.off += size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment