perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [Fwd: Some questions about mod_perl 2.0]
Date Thu, 30 Dec 2004 04:27:55 GMT
Adam Kennedy wrote:
>> If a module has XS code and doesn't provide a CLONE function, most 
>> likely it is not thread-safe (you can grep for CLONE). Of course those 
>> that provide the CLONE function aren't necessarily completely 
>> thread-safe. e.g. I've added CLONE only for the top level class in 
>> GTop, the rest of classes in that package are still not thread-safe. 
>> It's possible that XS module will be thread-safe w/o CLONE, it depends 
>> on what it does.
> While this may be true, a comparatively small number of modules use XS.
> In fact, if you like I can get hard numbers on that, as I'm writing some 
> module-scanning tasks at the moment and a check for the use of bootstrap 
> would probably make a nice test.
> There are a lot of other issues at a perl level. Such as any feature 
> implemented with the temporary localisation of globals.

I certainly didn't say that it was *the* test. Just something to consider. 
The other thread-"safety" issues include:

> When you summarise the response, I would definitely appreciate a section 
> on how we address and manage multiple-active-APIs-per-namespace at a 
> CPAN-wide level, since that it would appear that feature is needed to 
> make this mod_perl 2 idea work.

that's the main chunk of the summary.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

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

View raw message