mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
yield on x86 'pause' hint
This commit is contained in:
@@ -434,7 +434,9 @@ fn emulate_foreign_item_by_name(
|
||||
}
|
||||
|
||||
// Architecture-specific shims
|
||||
"llvm.x86.sse2.pause" if this.tcx.sess.target.target.arch == "x86" || this.tcx.sess.target.target.arch == "x86_64" => {}
|
||||
"llvm.x86.sse2.pause" if this.tcx.sess.target.target.arch == "x86" || this.tcx.sess.target.target.arch == "x86_64" => {
|
||||
this.sched_yield()?;
|
||||
}
|
||||
|
||||
// Platform-specific shims
|
||||
_ => match this.tcx.sess.target.target.target_os.as_str() {
|
||||
|
||||
Reference in New Issue
Block a user