perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gisle Aas <>
Subject Re: [PATCH] libperl leaks a THREAD_KEY each time it is reloaded
Date Mon, 10 Jan 2005 18:06:28 GMT
Stas Bekman <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message