aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcwork.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/mgcwork.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/mgcwork.go')
-rw-r--r--src/runtime/mgcwork.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/mgcwork.go b/src/runtime/mgcwork.go
index 0c1c482827..699982e01d 100644
--- a/src/runtime/mgcwork.go
+++ b/src/runtime/mgcwork.go
@@ -28,6 +28,8 @@ const (
// A wbufptr holds a workbuf*, but protects it from write barriers.
// workbufs never live on the heap, so write barriers are unnecessary.
// Write barriers on workbuf pointers may also be dangerous in the GC.
+//
+// TODO: Since workbuf is now go:notinheap, this isn't necessary.
type wbufptr uintptr
func wbufptrOf(w *workbuf) wbufptr {
@@ -279,6 +281,7 @@ type workbufhdr struct {
nobj int
}
+//go:notinheap
type workbuf struct {
workbufhdr
// account for the above fields