diff options
| author | Carl Shapiro <cshapiro@google.com> | 2013-03-28 14:36:23 -0700 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2013-03-28 14:36:23 -0700 |
| commit | c676b8b27b128e6369da7c3a3f2bbf52bde945c8 (patch) | |
| tree | 6f6ae22ad4df8f416cd4055f9662c335e96f5f4e /src/pkg/runtime/runtime.h | |
| parent | 7e7f89933b9d6eba5d298d3f619b5ef4166e5052 (diff) | |
| download | go-c676b8b27b128e6369da7c3a3f2bbf52bde945c8.tar.xz | |
cmd/ld, runtime: restrict stack root scan to locals and arguments
Updates #5134
R=golang-dev, bradfitz, cshapiro, daniel.morsing, ality, iant
CC=golang-dev
https://golang.org/cl/8022044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 638acd4740..11e713a2bc 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -147,7 +147,12 @@ enum // Global <-> per-M stack segment cache transfer batch size. StackCacheBatch = 16, }; - +enum +{ + // This value is generated by the linker and should be kept in + // sync with cmd/ld/lib.h + ArgsSizeUnknown = 0x80000000, +}; /* * structures */ @@ -775,7 +780,7 @@ void runtime·exitsyscall(void); G* runtime·newproc1(FuncVal*, byte*, int32, int32, void*); bool runtime·sigsend(int32 sig); int32 runtime·callers(int32, uintptr*, int32); -int32 runtime·gentraceback(byte*, byte*, byte*, G*, int32, uintptr*, int32); +int32 runtime·gentraceback(byte*, byte*, byte*, G*, int32, uintptr*, int32, void (*)(Func*, byte*, byte*, void*), void*); int64 runtime·nanotime(void); void runtime·dopanic(int32); void runtime·startpanic(void); |
