]> git.vpit.fr Git - perl/modules/autovivification.git/commit
Fix rare segfaults and bugs with threads
authorVincent Pit <vince@profvince.com>
Fri, 31 Dec 2010 14:05:15 +0000 (15:05 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 31 Dec 2010 14:09:19 +0000 (15:09 +0100)
commit46e0ea48eeda37d558ae27bfc983da47245c9777
tree0fbc6adfd904e601bd4fd53dfeab25e0e2c8f700
parentf424a623070821112b8dd42506aa772ad19f22bb
Fix rare segfaults and bugs with threads

There was a race in the "PL_ppaddr[OP_PADSV] save/restore dance" in that
perl might be compiling ops inside and outside the scope of the pragma at
the same time. We solve this by setting the op_ppaddr member of PADSV ops
to a_pp_deref during the peephole optimization phase.
autovivification.xs