Skip to content

Conversation

@qwwdfsad
Copy link
Member

Fixes #3375

@qwwdfsad qwwdfsad requested a review from dkhalanskyjb July 25, 2022 16:14
@qwwdfsad
Copy link
Member Author

I see, will fix kotlinx-coroutines-test as well

@qwwdfsad qwwdfsad force-pushed the get-rid-of-old-mm branch from d78edf1 to dee15d8 Compare July 25, 2022 19:38
fail("unreached")
} catch (e: UncompletedCoroutinesError) {
assertTrue((e.message ?: "").contains(name1))
assertContains(e.message ?: "", name1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be a bit more thorough here. In particular, I think it's worth it to review all files that use kotlin.native.concurrent and get rid of the hacks used to support the old memory model.

I went through the codebase, and here are the results: https://gist.github.com/dkhalanskyjb/ed533dfbaff5b5d39cba8bcc43f13921 Lots of unused imports were eliminated at least.

Of the remaining uses of kotlin.native.concurrent, all seem useful to me, except for kotlinx-coroutines-core/common/src/EventLoop.common.kt. I don't know that code well, so I'm not sure. Is there a benefit to have ThreadLocalEventLoop and it being @ThreadLocal? Sure does look like a measure put in place for the old memory model.

qwwdfsad and others added 3 commits July 26, 2022 17:35
Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
Co-authored-by: dkhalanskyjb <52952525+dkhalanskyjb@users.noreply.github.com>
@qwwdfsad
Copy link
Member Author

. Is there a benefit to have ThreadLocalEventLoop and it being @ThreadLocal?

I've dropped a comment

@qwwdfsad qwwdfsad requested a review from dkhalanskyjb July 26, 2022 17:56
@qwwdfsad qwwdfsad requested a review from dkhalanskyjb July 27, 2022 14:07
@qwwdfsad qwwdfsad merged commit 5c582ee into develop Jul 27, 2022
@qwwdfsad qwwdfsad deleted the get-rid-of-old-mm branch July 27, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants