Don't clone the contents of lexicals in pads.
authorNicholas Clark <nick@ccl4.org>
Thu, 25 Feb 2010 21:35:39 +0000 (21:35 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 24 May 2010 14:50:57 +0000 (15:50 +0100)
commit05d04d9c74ee968bace5e063c9ded74f94b3df24
tree27922dc03aaf175082115331cae0eb7d968c06d1
parent4cee4ca8b28e9dadc530df8ce100439bc4a78e73
Don't clone the contents of lexicals in pads.

This stops the values of lexicals in active stack frames in the parent leaking
into the lexicals in the child thread.

With an exception for lexicals with a reference count of > 1, to cope with the
implementation of ?{{ ... }} blocks in regexps. :-(
pad.c
t/op/threads.t