We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33f6b08 commit 0e0cd70Copy full SHA for 0e0cd70
src/runtime/traceback.go
@@ -1115,6 +1115,13 @@ func isSystemGoroutine(gp *g) bool {
1115
// to the symbolizer function, return the file/line of the call
1116
// instruction. No additional subtraction is required or appropriate.
1117
//
1118
+// On all platforms, the traceback function is invoked when a call from
1119
+// Go to C to Go requests a stack trace. On linux/amd64, linux/ppc64le,
1120
+// and freebsd/amd64, the traceback function is also invoked when a
1121
+// signal is received by a thread that is executing a cgo call. The
1122
+// traceback function should not make assumptions about when it is
1123
+// called, as future versions of Go may make additional calls.
1124
+//
1125
// The symbolizer function will be called with a single argument, a
1126
// pointer to a struct:
1127
0 commit comments