]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix block profile for sync semaphores
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 25 Aug 2014 08:09:42 +0000 (12:09 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 25 Aug 2014 08:09:42 +0000 (12:09 +0400)
Part of cl/128670043 that got lost during submit.

TBR=rsc
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/129570043

src/pkg/runtime/sema.go

index ac855f9d8c60465709b60233952e9cc71a7ebdc0..1d591ffeba85759a4f43fe6ca7aea2937033912d 100644 (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)
        }