aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mcache.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-10-11 22:58:21 -0400
committerAustin Clements <austin@google.com>2016-10-15 17:58:20 +0000
commit1bc6be6423e48318451a0faeaae840772137b001 (patch)
tree013de581e0dd5d1a65aac79b665b41afd5cb3586 /src/runtime/mcache.go
parent991a85c88944e9cb92c4860c173f49d549a92845 (diff)
downloadgo-1bc6be6423e48318451a0faeaae840772137b001.tar.gz
go-1bc6be6423e48318451a0faeaae840772137b001.zip
runtime: mark several types go:notinheap
This covers basically all sysAlloc'd, persistentalloc'd, and fixalloc'd types. Change-Id: I0487c887c2a0ade5e33d4c4c12d837e97468e66b Reviewed-on: https://go-review.googlesource.com/30941 Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mcache.go')
-rw-r--r--src/runtime/mcache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/mcache.go b/src/runtime/mcache.go
index 5938e53ca8..38d5492df1 100644
--- a/src/runtime/mcache.go
+++ b/src/runtime/mcache.go
@@ -11,6 +11,8 @@ import "unsafe"
//
// mcaches are allocated from non-GC'd memory, so any heap pointers
// must be specially handled.
+//
+//go:notinheap
type mcache struct {
// The following members are accessed on every malloc,
// so they are grouped here for better caching.