]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: correct printing of blocked field in scheduler trace
authorIan Lance Taylor <iant@golang.org>
Wed, 29 Jun 2016 00:23:01 +0000 (17:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 29 Jun 2016 01:38:39 +0000 (01:38 +0000)
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>
src/runtime/proc.go

index a0fddd0052bd23a07141ae9dadaf51e34e741880..2c0b3df167fbc9c94235c17d8b9e05dfd34cf014 100644 (file)
@@ -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)