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

Register finalizer for Kotlin Opaque #708

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

emarteca
Copy link
Contributor

Register the finalizer for opaques so the Rust memory cleanup is only called if Rust has passed a Box<Opaque> back to Kotlin (and so Kotlin owns the handler and is responsible for telling Rust that the memory should be cleaned up). This is done with Cleaners already.

@emarteca emarteca marked this pull request as ready for review October 11, 2024 15:54
@Manishearth Manishearth merged commit 874c694 into rust-diplomat:main Oct 11, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants