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

Add reference queue support to WeakRef. #408

Closed
wants to merge 1 commit into from

Conversation

headius
Copy link
Contributor

@headius headius commented Oct 1, 2013

* test/test_weakref.rb: Test reference queue logic.
@headius
Copy link
Contributor Author

headius commented Oct 1, 2013

Note that the test does not pass, and I'm not sure why.

@zzak
Copy link
Member

zzak commented Jan 21, 2014

@headius Did you see #480?

@k0kubun
Copy link
Member

k0kubun commented Aug 17, 2019

It seems to have a conflict now. Could you rebase this against master?

@hsbt hsbt closed this Aug 18, 2019
@hsbt hsbt reopened this Aug 18, 2019
@k0kubun
Copy link
Member

k0kubun commented Aug 19, 2019

Not sure why #480 was closed, but as it has not been updated for a while, let me close this. Please reopen this after resolving conflicts. Thanks.

@k0kubun k0kubun closed this Aug 19, 2019
@headius
Copy link
Contributor Author

headius commented Aug 22, 2019

I'm not sure if this PR is still relevant with work that has been done since then on WeakRef. In any case it would be much more efficient if the reference queue support were handled in native code by the GC, whenever a WeakRef is vacated.

I have talked with @tenderlove in the past about this feature. I'd be happy to help implement this properly but I am not familiar with the native parts of WeakRef (mostly ObjectSpace::Weakmap).

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