mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Disable asm("yield") for arm in SpinLock.yieldCpu() because of CI
This commit is contained in:
parent
c9db420a09
commit
4dbfc48ab3
@ -31,7 +31,10 @@ pub const SpinLock = struct {
|
||||
pub fn yieldCpu() void {
|
||||
switch (builtin.arch) {
|
||||
.i386, .x86_64 => asm volatile("pause" ::: "memory"),
|
||||
.arm, .aarch64 => asm volatile("yield"),
|
||||
// .arm, .aarch64 => asm volatile("yield"),
|
||||
//
|
||||
// Causes CI to fail
|
||||
// See: https://github.com/ziglang/zig/pull/3585#issuecomment-549962765
|
||||
else => time.sleep(0),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user