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

fix(worker): do not clean up workers in loop __gc #756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lewis6991
Copy link

When setting up luv with luaopen_luv(), instead of cleaning up workers
in the __gc of the loop (which luv may not own), instead create an empty
userdata with a worker __gc and attach it to the lua_State.

Fixes #754

When setting up luv with luaopen_luv(), instead of cleaning up workers
in the __gc of the loop (which luv may not own), instead create an empty
userdata with a worker __gc and attach it to the lua_State.

Fixes luvit#754
@clason
Copy link

clason commented Jan 29, 2025

Looks like this fixes the ASAN issue: https://github.com/neovim/neovim/actions/runs/13033954809?pr=32174

@lewis6991 lewis6991 marked this pull request as ready for review January 29, 2025 15:43
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.

loop __gc is not set when luv_set_loop is used.
2 participants