]> Cypherpunks repositories - gostls13.git/commit
runtime: add alignment info to sizeclasses.go comments
authorMatthew Dempsky <mdempsky@google.com>
Mon, 8 Mar 2021 23:36:28 +0000 (15:36 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 12 Mar 2021 17:41:56 +0000 (17:41 +0000)
commit735647d92e839f9ac3a91864a2c34263338a35e6
tree4d3acc05d70c4ccd622d62acb173cdd12871d6df
parent086357e8f617c325339fdaedd13563dbdb05b00d
runtime: add alignment info to sizeclasses.go comments

I was curious about the minimum possible alignment for each size class
and the minimum size to guarantee any particular alignment (e.g., to
know at what class size you can start assuming heap bits are byte- or
word-aligned).

Change-Id: I205b750286e8914986533c4f60712c420c3e63e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/299909
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
src/runtime/mksizeclasses.go
src/runtime/sizeclasses.go