develooper Front page | perl.perl5.porters | Postings from February 2003

Re: New SV Flag

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
February 9, 2003 23:45
Subject:
Re: New SV Flag
Message ID:
7EB26748-3CCB-11D7-8E65-003065D64CBE@contiller.se

On måndag, feb 10, 2003, at 00:18 Europe/Stockholm, Nicholas Clark 
wrote:

>
> On Mon, Feb 03, 2003 at 01:14:59AM +0100, Arthur Bergman wrote:
>> I would like all SVs that are living in the optree to be of this kind,
>> this would allow us to move constants out of the pad and let them be
>> PVMG so they can't be upgraded anymore, same applies for the
>> METHOD_NAMED SvPVIV.
>
> Does this mean that the SVs would not be reference counted? They would
> live as long as their ops? If so, this will SEGV once more:
>
> perl  -le 'my $a; BEGIN {$a = \"Foo"}; $a = $$a';
>
> Nicholas Clark

No, since the SVs are shared between all the opcodes using the same 
name.
(or can be shared)

Arthur


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About