From 6cb064c9c44fcd07bced22d2952a4856e5febc3e Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 13 Mar 2018 15:20:33 +0000 Subject: 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 --- src/runtime/traceback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/traceback.go') 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 -- cgit v1.3-5-g9baa