mikehearn
09/28/2018, 7:05 PMr4zzz4k
09/28/2018, 7:16 PMmalloc
actually uses calloc
under the hood :)
`nativeHeap.alloc()`:
https://github.com/JetBrains/kotlin-native/blob/master/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Utils.kt#L34
`nativeMemUtils.alloc()`:
https://github.com/JetBrains/kotlin-native/blob/master/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeMem.kt#L103
`Kotlin_interop_malloc`:
https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/cpp/Natives.cpp#L55olonho
09/28/2018, 7:28 PM