Hello, I'm using Kotlin in Nativescript and I was having a problem with garbage collection. I have made a simple example to reproduce this issue.
In the example, accessing to the kotlin library and forcing gc (It happens also without forcing it) makes the app hang and use ~100% of cpu.
I don’t know if it could be a v8 issue or a kotlin.js problem. I would like some advice on how to solve it, because this is making my app unresponsive during undetermined time when a garbage collection happens.
Here is a link to the project, It should be visible using and emulator, and clearly a problem in a real device:
https://drive.google.com/open?id=0Bx_IBINpIoEKcmtHbEdiLUdoU2c