Skip to content

[ffigen] Context field for ObjC blocks/protocols #2006

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

Open
liamappelbe opened this issue Feb 17, 2025 · 1 comment
Open

[ffigen] Context field for ObjC blocks/protocols #2006

liamappelbe opened this issue Feb 17, 2025 · 1 comment

Comments

@liamappelbe
Copy link
Contributor

ObjC implementation of jnigen's context proposal for interface implementation. The idea is that this context map would be stored on the native side as a map of weak references, to break Dart <-> Java/ObjC reference cycles that cause memory leaks.

Java doesn't have lambdas, so they only have to worry about interface implementation. But in the ObjC case we'll need to apply this to both blocks and protocols.

@liamappelbe
Copy link
Contributor Author

Related: #1510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant