]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/runtime/malloc.go
runtime: align first persistentalloc chunk as requested
[thirdparty/gcc.git] / libgo / go / runtime / malloc.go
index d2d869951c1a821d229749b3b96f00587a67ea09..b6a7ee11e9014cce695db72511fa9a7e4c2dbada 100644 (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