From c33d49002069e798b33d0de42d3eb5073aef7c0b Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 1 Aug 2013 19:28:38 +0400 Subject: 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 --- src/pkg/runtime/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/runtime.h') 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*); -- cgit v1.3-5-g9baa