aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-08-01 19:28:38 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-08-01 19:28:38 +0400
commitc33d49002069e798b33d0de42d3eb5073aef7c0b (patch)
tree3d5b9cf23b1f319ac56c02fb61530db8c03a0a8d /src/pkg/runtime/runtime.h
parent3cbc2716a94e836097f40dd3d7dd7b46f0fbbe50 (diff)
downloadgo-c33d49002069e798b33d0de42d3eb5073aef7c0b.tar.xz
runtime: print "created by" for running goroutines in traceback
This allows to at least determine goroutine "identity". Now it looks like: goroutine 12 [running]: goroutine running on other thread; stack unavailable created by testing.RunTests src/pkg/testing/testing.go:440 +0x88e R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/12248043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 1935a9a2f5..cfb4793af5 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -1039,6 +1039,7 @@ Hchan* runtime·makechan_c(ChanType*, int64);
void runtime·chansend(ChanType*, Hchan*, byte*, bool*, void*);
void runtime·chanrecv(ChanType*, Hchan*, byte*, bool*, bool*);
bool runtime·showframe(Func*, G*);
+void runtime·printcreatedby(G*);
void runtime·ifaceE2I(InterfaceType*, Eface, Iface*);