• Austin Clements's avatar
    runtime: YIELD in procyield on ARM · bdc64183
    Austin Clements authored
    ARM currently does not use a hardware yield instruction in the spin
    loop in procyield because the YIELD instruction was only added in
    ARMv6K. However, it appears earlier ARM chips will interpret the YIELD
    encoding as an effective NOP (specifically an MSR instruction that
    ultimately has no effect on the CPSR register).
    
    Hence, use YIELD in procyield on ARM since it should be, at worst,
    harmless.
    
    Fixes #16663.
    
    Change-Id: Id1787ac48862b785b92c28f1ac84cb4908d2173d
    Reviewed-on: https://go-review.googlesource.com/45250
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    bdc64183
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...