Skip to content

Commit 183fd6f

Browse files
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent ef400ed commit 183fd6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/stack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ func newstack() {
10001000
"\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n")
10011001
}
10021002
if sp < gp.stack.lo {
1003-
print("runtime: gp=", gp, ", gp->status=", hex(readgstatus(gp)), "\n ")
1003+
print("runtime: gp=", gp, ", goid=", gp.goid, ", gp->status=", hex(readgstatus(gp)), "\n ")
10041004
print("runtime: split stack overflow: ", hex(sp), " < ", hex(gp.stack.lo), "\n")
10051005
throw("runtime: split stack overflow")
10061006
}

0 commit comments

Comments
 (0)