runtime: align first persistentalloc chunk as requested

Backport of upstream https://golang.org/cl/163859.
    
    This fixes various failures on 32-bit SPARC.
    
    Patch from Eric Boctazou.
    
    Reviewed-on: https://go-review.googlesource.com/c/163860

From-SVN: r269258
This commit is contained in:
Ian Lance Taylor 2019-02-27 15:51:49 +00:00
parent 86863dad35
commit b91dfdcc68
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
bc036b3a03e089e78b892067e40dbb0e7ecca9e2
c9581de3804f94c5a74ce14befce5c57368722b9
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.

View File

@ -1269,7 +1269,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