authorgravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2019-11-05 16:16:03-06:00
committergravatar for kbutcher6200@gmail.comkprotty <kbutcher6200@gmail.com> 2019-11-05 16:16:03-06:00
log4dbfc48ab3adee68ccb354b80f787a4d42a72c24
tree375aefcca0a2b19db74e1c8aecb552c6a81da354
parentc9db420a09ad894c1e521d1bdf1c99a3424aa9a6

Disable asm("yield") for arm in SpinLock.yieldCpu() because of CI


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/spinlock.zig+4-1
......@@ -31,7 +31,10 @@ pub const SpinLock = struct {
3131 pub fn yieldCpu() void {
3232 switch (builtin.arch) {
3333 .i386, .x86_64 => asm volatile("pause" ::: "memory"),
34 .arm, .aarch64 => asm volatile("yield"),
34 // .arm, .aarch64 => asm volatile("yield"),
35 //
36 // Causes CI to fail
37 // See: https://github.com/ziglang/zig/pull/3585#issuecomment-549962765
3538 else => time.sleep(0),
3639 }
3740 }