diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-01 13:57:06 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-01 14:02:04 -0800 |
commit | 6eea2b427407da46a602a3ca17cbe055f57c24c0 (patch) | |
tree | 6bcb03e1da4c6a764a21187df990dfa2ae6b7c26 /cpan | |
parent | 8756617677dbda9a9ac19ac3155ca3bbabbf75a8 (diff) | |
download | perl-6eea2b427407da46a602a3ca17cbe055f57c24c0.tar.gz |
[perl #107366] Don’t clone GVs during thread join
unless they are orphaned.
This commit stops globs that still reside in their stashes from being
cloned during a join.
That way, a sub like sub{$::x++}, when cloned into a subthread and
returned from it, will still point to the same $::x.
This commit takes the conservative approach of copying on those globs
that can be found under their names in the original thread.
While this doesn’t work for all cases, it’s probably not possible to
make it work all the time.
Diffstat (limited to 'cpan')
0 files changed, 0 insertions, 0 deletions