harfbuzz / harfbuzz/luaharfbuzz

Make garbage collection more rigorous

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
14
Forks
6
Avg merge
1h 46m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.