mirror of
https://github.com/golang/go
synced 2024-11-12 08:20:22 -07:00
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: Austin Clements <austin@google.com>
This commit is contained in:
parent
711ea1e716
commit
c5babcc485
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user