diff options
| author | Russ Cox <rsc@golang.org> | 2013-07-19 16:04:09 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-07-19 16:04:09 -0400 |
| commit | 48769bf546ba7ad830c2edc05656e217d15a20c8 (patch) | |
| tree | e3110fce615f1250f56a7c68d69ade5ad3ff3bbb /src/pkg/runtime/funcdata.h | |
| parent | 5d340de1f682d3b2cf10b2319c25ef3799e84078 (diff) | |
| download | go-48769bf546ba7ad830c2edc05656e217d15a20c8.tar.xz | |
runtime: use funcdata to supply garbage collection information
This CL introduces a FUNCDATA number for runtime-specific
garbage collection metadata, changes the C and Go compilers
to emit that metadata, and changes the runtime to expect it.
The old pseudo-instructions that carried this information
are gone, as is the linker code to process them.
R=golang-dev, dvyukov, cshapiro
CC=golang-dev
https://golang.org/cl/11406044
Diffstat (limited to 'src/pkg/runtime/funcdata.h')
| -rw-r--r-- | src/pkg/runtime/funcdata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/runtime/funcdata.h b/src/pkg/runtime/funcdata.h index 850288bf64..f12bf49fb1 100644 --- a/src/pkg/runtime/funcdata.h +++ b/src/pkg/runtime/funcdata.h @@ -7,7 +7,9 @@ // be written using #defines. It is included by the runtime package // as well as the compilers. -#define PCDATA_ArgSize 0 +#define PCDATA_ArgSize 0 /* argument size at CALL instruction */ + +#define FUNCDATA_GC 0 /* garbage collector block */ // To be used in assembly. #define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n |
