From 7b3677bf3c02f79dc51575ef7b05ea2f4372df90 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 25 Aug 2014 12:09:42 +0400 Subject: [PATCH] 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 --- src/pkg/runtime/sema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.48.1