Reference cycles on JVM are fine, since if the pair is not gc root reachable, they both get eaten, so no problem (even if they reference each other).
Does this hold true for kotlin native as well?
y
Youssef Shoaib [MOD]
09/23/2024, 10:53 PM
Yes, for both the old and new memory models. The old one had a runtime cycle breaker, and the new one is just a normal GC, so it automatically does the gc root reachibility stuff