Skip to content

Commit 6ffcc3a

Browse files
committed
Fix possible crash in _dispatch_wait_for_enqueuer on Android armeabi-v7a
https://bugs.swift.org/browse/SR-15166
1 parent 880bf65 commit 6ffcc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/yield.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _dispatch_wait_for_enqueuer(void **ptr)
4444
__builtin_arm_clrex();
4545
return value;
4646
}
47-
__builtin_arm_wfe();
47+
dispatch_hardware_pause();
4848
}
4949
#else
5050
int spins = DISPATCH_WAIT_SPINS;

0 commit comments

Comments
 (0)