This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change cop_warnings from an SV holding the warnings bitmask to a
authorNicholas Clark <nick@ccl4.org>
Wed, 12 Apr 2006 22:45:12 +0000 (22:45 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 12 Apr 2006 22:45:12 +0000 (22:45 +0000)
commit72dc9ed5af65c946f73050becea29207a1af86c1
tree77d02ca4340063d7184142085f9527f83a40992e
parentaa283a383ef6540d57dd786b93d8ba9bd303e3e6
Change cop_warnings from an SV holding the warnings bitmask to a
directly (shared) malloc()ed buffer holding the warnings bitmask.
This avoids bugs/crashes when the interpreter that created an optree
is freed but the optree remains in use by other interpreters.

p4raw-id: //depot/perl@27779
14 files changed:
cop.h
embed.fnc
embed.h
mg.c
op.c
perl.c
pp_ctl.c
proto.h
scope.c
scope.h
sv.c
util.c
warnings.h
warnings.pl