mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: add TestSizeof
Borrowed from cmd/compile, TestSizeof ensures that the size of important types doesn't change unexpectedly. It also helps reviewers see the impact of intended changes. Change-Id: If57955f0c3e66054de3f40c6bba585b88694c7be Reviewed-on: https://go-review.googlesource.com/99837 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
b2d1cd2ad0
commit
031f71efdf
2 changed files with 41 additions and 0 deletions
|
|
@ -444,3 +444,5 @@ func MapNextArenaHint() (start, end uintptr) {
|
|||
func GetNextArenaHint() uintptr {
|
||||
return mheap_.arenaHints.addr
|
||||
}
|
||||
|
||||
type G = g
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue