OSSpinLock is unsafe in iOS #43

Closed
vampirewalk opened this Issue Jan 14, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@vampirewalk

Hi ibireme, thank you for bring us this great library.
My concern is that OSSpinLock is unsafe in iOS. It does not guarantee progress in the face of priority inversion.

http://mjtsai.com/blog/2015/12/16/osspinlock-is-unsafe/
https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151214/000372.html

@ibireme

This comment has been minimized.

Show comment
Hide comment
@ibireme

ibireme Jan 14, 2016

Owner

Thanks very much!
I'll do some research and fix it later.

Owner

ibireme commented Jan 14, 2016

Thanks very much!
I'll do some research and fix it later.

ibireme added a commit that referenced this issue Jan 15, 2016

Stop using spinlocks #43
Apple engineers have pointed out that OSSpinLocks are vulnerable to live locking
on iOS in cases of priority inversion:

. http://mjtsai.com/blog/2015/12/16/osspinlock-is-unsafe/
. https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151214/000372.html
@ibireme

This comment has been minimized.

Show comment
Hide comment
@ibireme

ibireme Jan 17, 2016

Owner

Fixed

Owner

ibireme commented Jan 17, 2016

Fixed

@ibireme ibireme closed this Jan 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment