From: Dmitriy Vyukov Date: Mon, 25 Aug 2014 08:09:42 +0000 (+0400) Subject: runtime: fix block profile for sync semaphores X-Git-Tag: go1.4beta1~719 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7b3677bf3c02f79dc51575ef7b05ea2f4372df90;p=gostls13.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 --- diff --git a/src/pkg/runtime/sema.go b/src/pkg/runtime/sema.go index ac855f9d8c..1d591ffeba 100644 --- a/src/pkg/runtime/sema.go +++ b/src/pkg/runtime/sema.go @@ -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) }