perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gisle Aas <gi...@ActiveState.com>
Subject Re: [PATCH] libperl leaks a THREAD_KEY each time it is reloaded
Date Mon, 10 Jan 2005 18:06:28 GMT
Stas Bekman <stas@stason.org> writes:

> I've played with it some more. The following program demonstrates some
> So again perl doesn't provide enough public API to properly juggle
> perl interpreters.

I disagree.  The API seems fine to me.

> Suggestions?

Don't mess with PL_curintep or FREE_THREAD_KEY.  These are internal to
perl and this problem should be fixed inside perl.  Assignments to
PL_curinterp or killing the thread key can't be made thread safe
without cooperation with perl itself.

If you need a workaround until this is fixed in perl just link in the
destructor I provided in mod_perl itself.

Regards,
Gisle

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message