Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followup: Kotlin callback destructors #648

Open
Manishearth opened this issue Aug 20, 2024 · 0 comments
Open

Followup: Kotlin callback destructors #648

Manishearth opened this issue Aug 20, 2024 · 0 comments
Labels
B-kotlin Kotlin backend

Comments

@Manishearth
Copy link
Contributor

#629 added callback support to Kotlin, however it's not able to handle destructors correctly: closures passed to Rust may get freed early. We need to register these in some GlobalRef and free them from Rust when the dtor gets called.

cc @emarteca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-kotlin Kotlin backend
Projects
None yet
Development

No branches or pull requests

1 participant