1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:54:42 -07:00

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:
Dmitriy Vyukov 2014-08-25 12:09:42 +04:00
parent 8ca564fb3f
commit 7b3677bf3c

View File

@ -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)
}