mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
e8f01d591f
commit
73d57bf80f
5 changed files with 2 additions and 125 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue