On Aug 3, 2014, at 11:41 , Nick Wellnhofer <[email protected]> wrote:

> Another approach is to clone the class registry for every Perl thread. 
> Something like that should work:
> 
> - Store the class registry in a Perl global. This would mean we need a
>  host-specific function to fetch the registry.
> - Define the special CLONE method which is invoked whenever Perl creates
>  a new thread. This method would clone the registry and store it in the
>  new thread’s version of the global variable.
> 
> Then we wouldn’t have to care about thread-safety of refcount handling at all.

I implemented this approach in branch ‘clone_class_registry’.

Nick

Reply via email to