aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-03-13 21:21:25 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2018-03-15 00:18:23 +0000
commit183fd6f19b6a88c0174cf3fd5a3b141b159b8225 (patch)
tree5f38acede8bd31434728d0e3edccb0c41b0e216d /src/runtime/stack.go
parentef400ed20afd033827abdc82d3e5afd272bf4629 (diff)
downloadgo-183fd6f19b6a88c0174cf3fd5a3b141b159b8225.tar.xz
runtime: print goid when throwing for split stack overflow
Change-Id: I66515156c2fc6886312c0eccb86d7ceaf7947042 Reviewed-on: https://go-review.googlesource.com/100465 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r--src/runtime/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 5a6259c6e2..8f10508a7d 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -1000,7 +1000,7 @@ func newstack() {
"\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n")
}
if sp < gp.stack.lo {
- print("runtime: gp=", gp, ", gp->status=", hex(readgstatus(gp)), "\n ")
+ print("runtime: gp=", gp, ", goid=", gp.goid, ", gp->status=", hex(readgstatus(gp)), "\n ")
print("runtime: split stack overflow: ", hex(sp), " < ", hex(gp.stack.lo), "\n")
throw("runtime: split stack overflow")
}