Re: When should PERL_SYS_TERM() be called? [was: Re: [PATCH] Re: [PATCH] Re: [PATCH...
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 5 Dec 2006 16:08:33 +0000 (11:08 -0500)
committerSteve Hay <SteveHay@planit.com>
Wed, 6 Dec 2006 14:08:49 +0000 (14:08 +0000)
commiteae082a0f03d579c4d57624c9d7432c4e6eb6e82
tree05c64c829deae16e79a95be86bf5642c022c81ff
parent581888587cc86bb21abcd35374b8f9e3c2857fa0
Re: When should PERL_SYS_TERM() be called? [was: Re: [PATCH] Re: [PATCH] Re: [PATCH] abstract mempool header testing]
Message-ID: <4575DFD1.1060108@iki.fi>

Fixes a problem spotted by Jan Dubois:

The PerlMemShared pool is only shared between the interpreters that
can share data structures (interpreters created by perl_clone(), which
mean pseudo-fork, and threads.xs).  The pool is not shared between
interpreters that are created separately by perl_alloc().
[...]
I guess this means PL_perlio_fd_refcnt needs to be allocated and
freed by standard malloc() and not go through any abstraction.

p4raw-id: //depot/perl@29477
perlio.c