I am curious if anybody has enabled this flag in t...
# compose-ios
t
I am curious if anybody has enabled this flag in their iOS KMP apps
Copy code
kotlin.native.binary.gc=cms
and what their experience has been. i am trying it now, but it would be nice to know how others experience has gone. Thanks!
👀 1
j
What does this flag do?
t
My understanding is that it runs the GC methods in a background thread, so it won't block the main thread. It can be noticable on iOS esp. There was a different flag that I used previously:
Copy code
kotlin.native.binary.objcDisposeOnMain = false
which had the same effect. My expectation with this new flag is that perhaps I can remove that and get perhaps better overall behavior. So I wanted to confirm with any others using the new flag.
j
Interesting, looking forward to the result
t
There is an issue I ran into with this flag, it caused random crashes, see: https://youtrack.jetbrains.com/issue/KT-71401/K-N-CMS-barrier-can-be-executed-on-an-unregisterred-thread
😞 4