Dave Mitchell via RT wrote:

I havn't looked closely at this yet, but surely nulling PL_curpm will
cause $1 etc to get lost across win32 forks

Most likely. The alternative is to do a deep copy of the PMOP, possibly worrying about whether or not the last searched string was shared.

There didn't seem much point to preserving $1 et al across threads::create().

Also, since the PMOP doesn't appear to be refcounted, I suspect it might be leaked upon a threads::join().

I did find it odd that there were two different functions for cloning an interpreter.




Reply via email to