Skip to content
Snippets Groups Projects
Verified Commit 6f93d620 authored by Gabriele Svelto's avatar Gabriele Svelto Committed by Pier Angelo Vendrame
Browse files

Bug 1784018 - Remove deprecated OSSpinLocks r=glandium

On macOS versions prior to 10.15 os_unfair_locks cannot spin in kernel-space
which degrades performance significantly. To obviate for this we spin in
user-space like OSSpinLock does, for the same number of times and invoking
x86-specific pause instructions in-between the locking attempts to avoid
starving a thread that might be running on the same physical core.

Differential Revision: https://phabricator.services.mozilla.com/D154205
parent 77663e9d
Branches
No related tags found
1 merge request!768Bug 42090: Rebase release release onto 102.15.1esr
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment