aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-06-28 17:23:01 -0700
committerIan Lance Taylor <iant@golang.org>2016-06-29 01:38:39 +0000
commit25a609556aff7700c864f2dc69be01652fd801ab (patch)
treefb92d1b3962c464941e5798ade5f3ede3363faec
parentc7ae41e5770b2258074eee68a6a3c4d0d71a251f (diff)
downloadgo-25a609556aff7700c864f2dc69be01652fd801ab.tar.gz
go-25a609556aff7700c864f2dc69be01652fd801ab.zip
runtime: correct printing of blocked field in scheduler trace
When the blocked field was first introduced back in https://golang.org/cl/61250043 the scheduler trace code incorrectly used m->blocked instead of mp->blocked. That has carried through the conversion to Go. This CL fixes it. Change-Id: Id81907b625221895aa5c85b9853f7c185efd8f4b Reviewed-on: https://go-review.googlesource.com/24571 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/runtime/proc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index a0fddd0052..2c0b3df167 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -3826,7 +3826,7 @@ func schedtrace(detailed bool) {
if lockedg != nil {
id3 = lockedg.goid
}
- print(" M", mp.id, ": p=", id1, " curg=", id2, " mallocing=", mp.mallocing, " throwing=", mp.throwing, " preemptoff=", mp.preemptoff, ""+" locks=", mp.locks, " dying=", mp.dying, " helpgc=", mp.helpgc, " spinning=", mp.spinning, " blocked=", getg().m.blocked, " lockedg=", id3, "\n")
+ print(" M", mp.id, ": p=", id1, " curg=", id2, " mallocing=", mp.mallocing, " throwing=", mp.throwing, " preemptoff=", mp.preemptoff, ""+" locks=", mp.locks, " dying=", mp.dying, " helpgc=", mp.helpgc, " spinning=", mp.spinning, " blocked=", mp.blocked, " lockedg=", id3, "\n")
}
lock(&allglock)