-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash when accessing setValue concurrently (follow-up) #5
base: main
Are you sure you want to change the base?
Conversation
Does |
55f631f
to
b02d093
Compare
I think it is unnecessary since it won't e needed if we upgrade the macOS version in GitHub Actions. What do you think? @ichiho-ojima |
var storage: [CacheKey : Data] = [:] | ||
let storage: ThreadSafeDictionary<CacheKey, Data> = .init() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the crash issue cannot be resolved simply by wrapping storage
with OSAllocatedUnfairLock
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'll try it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ichiho-ojima
OSAllocatedUnfairLock
requires iOS 16+, tvOS 16+, watchOS 9+, and macOS 13+. Can we bump our minimum deployment targets to these versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I forgot to consider the version where OSAllocatedUnfairLock
is available.
Personally, I think it's an option to make the supported version iOS 16+ for using OSAllocatedUnfairLock
, but what do you think? @elmetal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ichiho-ojima
I think that's a good approach, but we need to be mindful of versioning.
Should we keep this PR focused on adding |
If migrating to Swift 6 is very straightforward, I think it would be fine to handle it in this PR. |
This is a follow-up PR to #2.
Closes #2