]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: use smaller fields for mspan.freeindex and nelems
authorCherry Mui <cherryyz@google.com>
Wed, 16 Nov 2022 22:32:08 +0000 (17:32 -0500)
committerCherry Mui <cherryyz@google.com>
Mon, 2 Oct 2023 20:39:21 +0000 (20:39 +0000)
commit340a4f55c4afac5b74c8df8365decb0c0237d710
tree6c323e9e445ec5693c9c58e102dbe677e2735c6a
parent32b6d2d9a849a0f0120e9139b403831669373b79
runtime: use smaller fields for mspan.freeindex and nelems

mspan.freeindex and nelems can fit into uint16 for all possible
values. Use uint16 instead of uintptr.

Change-Id: Ifce20751e81d5022be1f6b5cbb5fbe4fd1728b1b
Reviewed-on: https://go-review.googlesource.com/c/go/+/451359
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/export_test.go
src/runtime/heapdump.go
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mcache.go
src/runtime/mcentral.go
src/runtime/mgcsweep.go
src/runtime/mheap.go
src/runtime/pinner.go