Skip to content

Add reference queue support to WeakRef.#408

Closed
headius wants to merge 1 commit intoruby:masterfrom
headius:weakref_queue
Closed

Add reference queue support to WeakRef.#408
headius wants to merge 1 commit intoruby:masterfrom
headius:weakref_queue

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 k0kubun changed the base branch from trunk to master August 15, 2019 18:00
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants