Join Slack
Powered by
What happens if we forget to freeze an object that...
# kotlin-native
s
spierce7
04/28/2018, 9:50 PM
What happens if we forget to freeze an object that is shared between threads with kotlin-native?
e
elizarov
04/29/2018, 6:11 AM
It will crash.
o
olonho
04/29/2018, 6:49 AM
it depends on mechanism of sharing, with pure Kotlin mechanism, such as
schedule()
, transfer will fail with an exception, if use C interop-based mechanisms - it will behave incorrectly and may crash
2
Views
Open in Slack
Previous
Next