Hi, I have a question about native C consuming a K...
# kotlin-native
p
Hi, I have a question about native C consuming a KN shared lib. I am reviewing the code in the 'produce_dynamic' test and noticed this: https://github.com/JetBrains/kotlin-native/blob/master/backend.native/tests/produce_dynamic/simple/main.c#L38
Copy code
T_(Data) data = __ kotlin.root.getMutable();
Why is this object not released via
DisposeStablePointer()
like the other objects returned from the KN side? (@olonho/@svyatoslav.scherbina ?)
s
This might be a bug.
p
A related question, what does
DisposeStablePointer
do? Does it perform memory deallocation like C++
delete
? Or is it more along the lines of decrementing a refcount for kotlin GC?
s
Or is it more along the lines of decrementing a refcount for kotlin GC?
This one.
🙏 1