]> Cypherpunks repositories - gostls13.git/commit
runtime: make _TinySizeClass an int8 to prevent use as spanClass
authorAustin Clements <austin@google.com>
Fri, 17 Jun 2016 13:33:33 +0000 (09:33 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Apr 2017 22:50:39 +0000 (22:50 +0000)
commit295d160e017edce29b3dccfa7bb7a9e5d9434b26
treed25bc95ced78b6cf43be61eb82458fb6a3ee69a9
parent8e25d4ccef45860186187d4ca7428052028abbb0
runtime: make _TinySizeClass an int8 to prevent use as spanClass

Currently _TinySizeClass is untyped, which means it can accidentally
be used as a spanClass (not that I would know this from experience or
anything). Make it an int8 to avoid this mix up.

This is a cherry-pick of dev.garbage commit 81b74bf9c5.

Change-Id: I1e69eccee436ea5aa45e9a9828a013e369e03f1a
Reviewed-on: https://go-review.googlesource.com/41254
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc.go
src/runtime/mheap.go