diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 6695372a3f..be3a9bd26f 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -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