kotlin native still has garbage collection right?
# kotlin-native
h
kotlin native still has garbage collection right?
g
automatic reference counting with a cycle collector on top
e
isn't courtesy of LLVM?
g
No, Kotlin-native has own memory management. LLVM as I know provides some tooling for GC, but don’t know does k/n use it or not
a
Garbage collector for memory cycles so you don't have the same problems as iOS developers and reference counting
s
@gildor What is a cycle collector? Would that solve the cyclic dependencies problem? i.e. A has a ref to B, which has a ref to A, so none of them can be released from memory causing a leak?
a
Yes. It tracks those and when both objects are not referenced outside the cycle it knows to dispose them apparently