aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/funcdata.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-10-28 15:51:06 -0400
committerRuss Cox <rsc@golang.org>2014-10-28 15:51:06 -0400
commit202bf8d94dfedfca3a404f5fe9dd19f19f760372 (patch)
tree9c62636347607e6018520c6e4431673b84dcf9d7 /src/runtime/funcdata.h
parent8a9c2c55bd0ccbadcf49126482110bee92fb5826 (diff)
downloadgo-202bf8d94dfedfca3a404f5fe9dd19f19f760372.tar.gz
go-202bf8d94dfedfca3a404f5fe9dd19f19f760372.zip
doc/asm: explain coordination with garbage collector
Also a few other minor changes. Fixes #8712. LGTM=r R=r CC=golang-codereviews https://golang.org/cl/164150043
Diffstat (limited to 'src/runtime/funcdata.h')
-rw-r--r--src/runtime/funcdata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/funcdata.h b/src/runtime/funcdata.h
index a2667a4c02..d6c14fcb41 100644
--- a/src/runtime/funcdata.h
+++ b/src/runtime/funcdata.h
@@ -28,6 +28,9 @@
// defines the pointer map for the function's arguments.
// GO_ARGS should be the first instruction in a function that uses it.
// It can be omitted if there are no arguments at all.
+// GO_ARGS is inserted implicitly by the linker for any function
+// that also has a Go prototype and therefore is usually not necessary
+// to write explicitly.
#define GO_ARGS FUNCDATA $FUNCDATA_ArgsPointerMaps, go_args_stackmap(SB)
// GO_RESULTS_INITIALIZED indicates that the assembly function