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

Make garbage collection more rigorous #9

Open
deepakjois opened this issue Dec 3, 2015 · 0 comments
Open

Make garbage collection more rigorous #9

deepakjois opened this issue Dec 3, 2015 · 0 comments

Comments

@deepakjois
Copy link
Member

Right now, we are defining __gc metamethods in the metatable of the userdata that holds the Harfbuzz objects. However, there is a possibility that these will be called prematurely if a local Lua userdata object goes out of scope, even as it is being used by another Harfbuzz type. This introduces subtle failure cases which will be very hard to track down.

We need to have a better plan with regards to Garbage collection.

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

No branches or pull requests

1 participant