We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a67e6 commit 7a0aa25Copy full SHA for 7a0aa25
src/runtime/proc.go
@@ -1678,8 +1678,7 @@ func lockextra(nilokay bool) *m {
1678
for {
1679
old := atomic.Loaduintptr(&extram)
1680
if old == locked {
1681
- yield := osyield
1682
- yield()
+ osyield()
1683
continue
1684
}
1685
if old == 0 && !nilokay {
@@ -1696,8 +1695,7 @@ func lockextra(nilokay bool) *m {
1696
1695
if atomic.Casuintptr(&extram, old, locked) {
1697
return (*m)(unsafe.Pointer(old))
1698
1699
1700
1701
1702
1703
0 commit comments