Revert "sync: yield to the waiter when unlocking a starving mutex"

This reverts CL 200577.

Reason for revert: broke linux-arm64-packet and solaris-amd64-oraclerel builders

Fixes #35424
Updates #33747

Change-Id: I2575fd84d37995d458183caae54704f15d8b8426
Reviewed-on: https://go-review.googlesource.com/c/go/+/205817
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Bryan C. Mills 2019-11-07 14:09:23 +00:00
parent e8f01d591f
commit 73d57bf80f
5 changed files with 2 additions and 125 deletions

View file

@ -730,11 +730,3 @@ func RunGetgThreadSwitchTest() {
panic("g1 != g3")
}
}
var Semacquire = semacquire
var Semrelease1 = semrelease1
func SemNwait(addr *uint32) uint32 {
root := semroot(addr)
return atomic.Load(&root.nwait)
}