diff options
| author | Keith Randall <khr@golang.org> | 2014-09-29 21:21:36 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-09-29 21:21:36 -0700 |
| commit | 70b2da98ca097598326d5d01406b287bcd5eb6ee (patch) | |
| tree | 6777e4e223a9ff877905ed8978df58fbe1ac631f /src/runtime/runtime.h | |
| parent | f13cec9f5732dd09c51f90957c3d888aad782c27 (diff) | |
| download | go-70b2da98ca097598326d5d01406b287bcd5eb6ee.tar.xz | |
runtime: initialize traceback variables earlier
Our traceback code needs to know the PC of several special
functions, including goexit, mcall, etc. Make sure that
these PCs are initialized before any traceback occurs.
Fixes #8766
LGTM=rsc
R=golang-codereviews, rsc, khr, bradfitz
CC=golang-codereviews
https://golang.org/cl/145570043
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 3a6d3e3262..aa300d7bb8 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -841,6 +841,7 @@ void runtime·mpreinit(M*); void runtime·minit(void); void runtime·unminit(void); void runtime·signalstack(byte*, int32); +void runtime·tracebackinit(void); void runtime·symtabinit(void); Func* runtime·findfunc(uintptr); int32 runtime·funcline(Func*, uintptr, String*); |
