01-06-06 17.07, skrev Jenda Krynicky p� [EMAIL PROTECTED] f�ljande:

>>> Though with modules like DBI it might not help.
>>> 
>>> Actualy how does perl clone the data? Does it traverse all references
>>> copying what it sees like a copying garbage collector ?
>> 
>> Yes.
> 
> Would it be too expensive to check whether the reference is blessed
> to a package that's in a set of classes to null? And if it is to skip
> the reference?
> 
> I guess this is exactly the time you'd have to call
> the CLONE callback anyway, isn't it?
> 
> We could even mark whole structures as "null on fork" this way if we'd
> have only one unblessed reference into them (at the time of fork()).
> We'd just bless the reference to "Null_on_fork" class ...

OTOH We could let the module do it in the CLONE callback. We could let the
nullonfork module install a CLONE callback.

I am working on the CLONE callback right now.

Artur

Reply via email to