diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-09 12:53:35 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-09 12:53:35 +0400 |
| commit | 01f1e3da484f74a7229c3c1eb719403b4e8c7a1c (patch) | |
| tree | 339ea64dccf5684e6ab21ae19acbae5e5654a354 /src/pkg/runtime/runtime.h | |
| parent | e0405b73187fddbcd685490550681d4fb742105d (diff) | |
| download | go-01f1e3da484f74a7229c3c1eb719403b4e8c7a1c.tar.xz | |
runtime: traceback running goroutines
Introduce freezetheworld function that is a best-effort attempt to stop any concurrently running goroutines. Call it during crash.
Fixes #5873.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12054044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 2529a0fdcf..7d04a75424 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -837,6 +837,7 @@ int32 runtime·callers(int32, uintptr*, int32); int64 runtime·nanotime(void); void runtime·dopanic(int32); void runtime·startpanic(void); +void runtime·freezetheworld(void); void runtime·unwindstack(G*, byte*); void runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp); void runtime·resetcpuprofiler(int32); |
