Skip to content

Commit

Permalink
Add patches for Armv5
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Dec 23, 2024
1 parent 2842fb1 commit 5b9eb06
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions package/swift/0001-Fix-spin-loop-hint-for-Armv5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 36a439452936f26cc0ac5ac3b4ea9c0f0300f2ce Mon Sep 17 00:00:00 2001
From: Alsey Coleman Miller <[email protected]>
Date: Sun, 22 Dec 2024 23:07:53 -0500
Subject: [PATCH] Fix spin loop hint for Armv5

---
stdlib/public/Synchronization/Mutex/SpinLoopHint.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stdlib/public/Synchronization/Mutex/SpinLoopHint.swift b/stdlib/public/Synchronization/Mutex/SpinLoopHint.swift
index 0084e1d0568..e669f1e2117 100644
--- a/stdlib/public/Synchronization/Mutex/SpinLoopHint.swift
+++ b/stdlib/public/Synchronization/Mutex/SpinLoopHint.swift
@@ -77,7 +77,7 @@ var _tries: Int {

@inline(__always)
func _spinLoopHint() {
-#if arch(arm) || arch(arm64) || arch(arm64_32)
+#if arch(arm64) || arch(arm64_32)
_wfe()
#elseif arch(i386) || arch(x86_64)
_pause()
--
2.39.5 (Apple Git-154)

0 comments on commit 5b9eb06

Please sign in to comment.