Commit 7b3677bf authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: fix block profile for sync semaphores

Part of cl/128670043 that got lost during submit.

TBR=rsc
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/129570043
parent 8ca564fb
...@@ -66,7 +66,7 @@ func syncsemacquire(s *syncSema) { ...@@ -66,7 +66,7 @@ func syncsemacquire(s *syncSema) {
s.tail = w s.tail = w
goparkunlock(&s.lock, "semacquire") goparkunlock(&s.lock, "semacquire")
if t0 != 0 { if t0 != 0 {
goblockevent(int64(w.releasetime)-t0, 2) goblockevent(int64(w.releasetime)-t0, 3)
} }
releaseSudog(w) releaseSudog(w)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment