aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/traceback.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2018-03-13 15:20:33 +0000
committerJosh Bleecher Snyder <josharian@gmail.com>2018-03-13 15:21:21 +0000
commit6cb064c9c44fcd07bced22d2952a4856e5febc3e (patch)
tree148501cfb3cbbf65fda30600ce80632365bfd452 /src/runtime/traceback.go
parent911839c1f462260db0f001f8e017f10f688d2270 (diff)
downloadgo-6cb064c9c44fcd07bced22d2952a4856e5febc3e.tar.xz
Revert "runtime: convert g.waitreason from string to uint8"
This reverts commit 4eea887fd477368653f6fcf8ad766030167936e5. Reason for revert: broke s390x build Change-Id: Id6c2b6a7319273c4d21f613d4cdd38b00d49f847 Reviewed-on: https://go-review.googlesource.com/100375 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/runtime/traceback.go')
-rw-r--r--src/runtime/traceback.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go
index 3c572a7b28..2261942ab4 100644
--- a/src/runtime/traceback.go
+++ b/src/runtime/traceback.go
@@ -827,8 +827,8 @@ func goroutineheader(gp *g) {
}
// Override.
- if gpstatus == _Gwaiting && gp.waitreason != waitReasonZero {
- status = gp.waitreason.String()
+ if gpstatus == _Gwaiting && gp.waitreason != "" {
+ status = gp.waitreason
}
// approx time the G is blocked, in minutes