]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: distinguish semaphore wait from sync.Cond.Wait
authorAustin Clements <austin@google.com>
Mon, 26 Mar 2018 21:45:01 +0000 (17:45 -0400)
committerAustin Clements <austin@google.com>
Fri, 6 Apr 2018 18:09:38 +0000 (18:09 +0000)
Updates #24362.

Change-Id: Ided1ab31792f05d9d7a86f17c1bcbd9e9b80052c
Reviewed-on: https://go-review.googlesource.com/102606
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/sema.go

index d5ea14d46d0cb8e08516dbedc7ea2f22dde828f0..e7824d0d8847170ba510dcf49bd0b2f16d13ae72 100644 (file)
@@ -507,7 +507,7 @@ func notifyListWait(l *notifyList, t uint32) {
                l.tail.next = s
        }
        l.tail = s
-       goparkunlock(&l.lock, "semacquire", traceEvGoBlockCond, 3)
+       goparkunlock(&l.lock, "sync.Cond.Wait", traceEvGoBlockCond, 3)
        if t0 != 0 {
                blockevent(s.releasetime-t0, 2)
        }