Hi, is anyone aware of these leaks with new memory model in Kotlin
1.6.20
and coroutines-native
1.6.1-native-mt
?
I know they seem to be minor in terms of size but I want to understand how are they leaking and try to avoid them.
Thanks.
k
K Merle
09/02/2022, 6:46 AM
If I may ask, which tool are you using here?
a
Arkadii Ivanov
09/02/2022, 2:54 PM
Perhaps we should use normal coroutines with the new memory model, not native-mt. Maybe that would fix the leaks?
a
Alex Acosta
09/02/2022, 2:55 PM
I am using Xcode Insturments
Okay, I will play with latest 1.7.20 and move to normal coroutines and see
Alex Acosta
09/02/2022, 3:40 PM
My theory is that it has to do with the fact that coroutines are required to be started from the main thread, so this is retaining the reference of it.