commit | c9581de3804f94c5a74ce14befce5c57368722b9 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Feb 26 16:40:27 2019 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Feb 27 15:51:17 2019 +0000 |
tree | fe8b66ecd2ed64e6f33848991ef25d45d30e46e0 | |
parent | bc036b3a03e089e78b892067e40dbb0e7ecca9e2 [diff] |
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. Change-Id: I59312896574881f8d8ef58886ef9773f4865fb2d Reviewed-on: https://go-review.googlesource.com/c/163860 Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/go/runtime/malloc.go b/libgo/go/runtime/malloc.go index d2d8699..b6a7ee1 100644 --- a/libgo/go/runtime/malloc.go +++ b/libgo/go/runtime/malloc.go
@@ -1269,7 +1269,7 @@ break } } - persistent.off = sys.PtrSize + persistent.off = round(sys.PtrSize, align) } p := persistent.base.add(persistent.off) persistent.off += size