]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix documented alignment of 32KiB and 64KiB size classes
authorMatthew Dempsky <mdempsky@google.com>
Sat, 13 Mar 2021 00:58:10 +0000 (16:58 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 13 Mar 2021 04:53:32 +0000 (04:53 +0000)
commita8a85281caf21831ee51ea8c879cbba94bcce256
tree0cd1ff549dbdd3904d7580ae719228f4f4d82ad4
parent8e725f8452ac0ece548837a95d125bc67b9d8828
runtime: fix documented alignment of 32KiB and 64KiB size classes

As Cherry pointed out on golang.org/cl/299909, the page allocator
doesn't guarantee any alignment for multi-page allocations, so object
alignments are thus implicitly capped at page alignment.

Change-Id: I6f5df27f269b095cde54056f876fe4240f69c5c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/301292
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
src/runtime/mksizeclasses.go
src/runtime/sizeclasses.go