develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #98204] Shared objects not destoryed

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
September 8, 2011 00:00
Subject:
[perl #98204] Shared objects not destoryed
Message ID:
rt-3.6.HEAD-31297-1315465209-1511.98204-15-0@perl.org
On Wed Sep 07 08:24:40 2011, sprout wrote:
> If we create a proxy for everything that is freed, even if it is not
> blessed, then ref refs and nested aggregates will work.  I think I’m
> going to do it this way.

Attached are two patches.  The first one is a minor refactoring to
S_get_RV in preparation for the second patch.  The second one fixes the
bug by creating a proxy for sub-items of anything about to be freed, if
those sub-items are otherwise unreferenced shared SVs.

I still need to write a commit message for the second patch.

As I’ve never modified shared.xs before, I would appreciate review and
approval from someone else before I commit this.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About