mirror of https://github.com/golang/go.git
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
This commit is contained in:
parent
8ca564fb3f
commit
7b3677bf3c
|
|
@ -66,7 +66,7 @@ func syncsemacquire(s *syncSema) {
|
|||
s.tail = w
|
||||
goparkunlock(&s.lock, "semacquire")
|
||||
if t0 != 0 {
|
||||
goblockevent(int64(w.releasetime)-t0, 2)
|
||||
goblockevent(int64(w.releasetime)-t0, 3)
|
||||
}
|
||||
releaseSudog(w)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue