-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Migrate from the deprecated native atomics #3798
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
Conversation
I don't have any context for this, so I'll need some explanation.
|
Hi!)
|
|
My only concern is that a branch should build with
Why can't we do it ourselves? Is it not just about updating the Kotlin version in a couple of places? For example, what's preventing us from upgrading Kotlin to something like 1.9.0-RC in this same PR? |
What should we do with this PR? Seems kind of abandoned |
I'll create a PR with the necessary changes in develop: in this case just swapping package imports (kotlin.concurrent and kotlin.native.concurrent) should help. |
20c6db7
to
79c22b7
Compare
eccc5ea
to
9a13158
Compare
So, here is the update on this PR: In coroutines we need to migrate from old atomics to the new atomics from kotlin.concurrent package, but those are only available since 1.9.0 In order to add this commit to develop first I tried to import both Is there a better solution for this, then just adding this commit to |
This commit is required for the aggregate build that checks the change of deprecation level for native atomics (https://jetbrains.team/p/kt/reviews/10650/timeline). Usages of native atomics from kotlin.native.concurrent package are replaced with new atomics from kotlin.concurrent because old native atomics will be deprecated with error. NOTE: this commit is not present in develop branch, because new kotlin.concurrent atomics are only available since Kotlin 1.9.0. IT SHOULD BE REMOVED after kotlinx.coroutines updates Kotlin version to 1.9.0.
9a13158
to
77b630c
Compare
This reverts commit 6fb30e2.
I've reverted this commit, we don't need it in this PR |
This commit is required for the aggregate build that checks the change of deprecation level for native atomics (https://jetbrains.team/p/kt/reviews/10650/timeline). Usages of native atomics from
kotlin.native.concurrent
package are replaced with new atomics fromkotlin.concurrent
because old native atomics will be deprecated with error.NOTE: this commit is not present in develop branch, because new
kotlin.concurrent
atomics are only available since Kotlin 1.9.0. IT SHOULD BE REMOVED after kotlinx.coroutines updates Kotlin version to 1.9.0.Here is the build that checked this branch against the 1.9.20-dev Kotlin version. This TC config may be used to check that changes from the given branch won't break the aggregate build.