]> Cypherpunks repositories - gostls13.git/commit
runtime: make mcache.local_cachealloc a uintptr
authorAustin Clements <austin@google.com>
Mon, 13 Apr 2015 21:06:22 +0000 (17:06 -0400)
committerAustin Clements <austin@google.com>
Tue, 21 Apr 2015 15:35:41 +0000 (15:35 +0000)
commit91c80ce6c75b5b11dc3f888d4a1f34c7133f2341
tree8fcec741240d73218c44be4218f024770a89493d
parenta0452a68211c505596d0a406ec083cf5d3b03b89
runtime: make mcache.local_cachealloc a uintptr

This field used to decrease with sweeps (and potentially go
negative). Now it is always zero or positive, so change it to a
uintptr so it meshes better with other memory stats.

Change-Id: I6a50a956ddc6077eeaf92011c51743cb69540a3c
Reviewed-on: https://go-review.googlesource.com/8899
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc.go
src/runtime/mcache.go