]> Cypherpunks repositories - gostls13.git/commit
runtime: make mcache.tiny a uintptr
authorAustin Clements <austin@google.com>
Mon, 16 Nov 2015 20:31:50 +0000 (15:31 -0500)
committerAustin Clements <austin@google.com>
Mon, 16 Nov 2015 22:07:41 +0000 (22:07 +0000)
commit4d39bb6a3a06a7690242559113b7434591e97cbf
tree51c87a9cf540272999d52a22bb1c30d8a437ef28
parent835c83b40dd9b94b51180898551b313a92892ffd
runtime: make mcache.tiny a uintptr

mcache.tiny is in non-GC'd memory, but points to heap memory. As a
result, there may or may not be write barriers when writing to
mcache.tiny. Make it clearer that funny things are going on by making
mcache.tiny a uintptr instead of an unsafe.Pointer.

Change-Id: I732a5b7ea17162f196a9155154bbaff8d4d00eac
Reviewed-on: https://go-review.googlesource.com/16963
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/malloc.go
src/runtime/mcache.go