From: Austin Clements Date: Mon, 26 Mar 2018 21:45:01 +0000 (-0400) Subject: runtime: distinguish semaphore wait from sync.Cond.Wait X-Git-Tag: go1.11beta1~938 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e13a213c7f9d78cfb79f91bcf9b75e3d22362a92;p=gostls13.git runtime: distinguish semaphore wait from sync.Cond.Wait Updates #24362. Change-Id: Ided1ab31792f05d9d7a86f17c1bcbd9e9b80052c Reviewed-on: https://go-review.googlesource.com/102606 Run-TryBot: Austin Clements TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/sema.go b/src/runtime/sema.go index d5ea14d46d..e7824d0d88 100644 --- a/src/runtime/sema.go +++ b/src/runtime/sema.go @@ -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) }