From 48769bf546ba7ad830c2edc05656e217d15a20c8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Jul 2013 16:04:09 -0400 Subject: 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 --- src/pkg/runtime/funcdata.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pkg/runtime/funcdata.h') 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 -- cgit v1.3