develooper Front page | perl.perl5.porters | Postings from May 2013

Global interpreter destruction callback

Thread Next
Steffen Mueller
May 25, 2013 13:42
Global interpreter destruction callback
Message ID:
Hi all,

to be able to address long standing issues with free-ing resources in an 
XS module that may be used very late during global destruction, I've 
just implemented PL_destructcb, a global C-level callback that will be 
invoked very late in the interpreter destruction - long after all Perl 
code has finished executing.

This was triggered by the recent thread about Storable, but I appreciate 
this doesn't single-handedly address the issue raised in that thread. 
What it DOES do is allow me to fix a long-standing (constant-sized) 
memory leak in the Class::XSAccessor module which uses 
out-of-interpreter state.

I would appreciate feedback and review before I push this to blead: 
branch smueller/destructcb.

Best regards,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About