raniejade
03/06/2020, 3:34 AM1.3.70
release notes for kotlin native (https://github.com/JetBrains/kotlin-native/blob/master/CHANGELOG.md), there is an entry that piqued my interest: On-stack allocation using local escape analysis (GH-3625)
. Can anyone from the KN team elaborate more on this? (maybe @olonho?)sergey.bogolepov
03/06/2020, 3:53 AMIntArray
). For example, array
here will be allocated on stack. https://github.com/JetBrains/kotlin-native/blob/4fd2e67d68c0a338a3016184377fc02cc2cac7b8/performance/ring/src/main/kotlin/org/jetbrains/ring/LocalObjectsBenchmark.kt#L25napperley
03/06/2020, 3:54 AMraniejade
03/06/2020, 3:56 AMCValue<T>
as well?sergey.bogolepov
03/06/2020, 3:59 AMnapperley
03/06/2020, 4:00 AMsergey.bogolepov
03/06/2020, 4:05 AMraniejade
03/06/2020, 4:31 AMCValue
work? From what I understand the value is copied from the stack into kotlin's "managed memory" right?