diff options
author | Doug MacEachern <dougm@covalent.net> | 2002-06-09 09:49:25 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-09 23:25:04 +0000 |
commit | 59b4066285adfb32f43328ed52e37356d33be015 (patch) | |
tree | 3a016bc5c1debdf941b87869ae7e1ec06eef7e92 /sv.c | |
parent | b238e82634f7c3c5500709c523a925d0d03b1f42 (diff) | |
download | perl-59b4066285adfb32f43328ed52e37356d33be015.tar.gz |
Re: unique attribute?
Message-ID: <Pine.LNX.4.33.0206091645330.26891-100000@mako.covalent.net>
p4raw-id: //depot/perl@17153
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -8859,10 +8859,10 @@ char *PL_watch_pvx; /* attempt to make everything in the typeglob readonly */ STATIC SV * -S_gv_share(pTHX_ SV *sstr) +S_gv_share(pTHX_ SV *sstr, CLONE_PARAMS *param) { GV *gv = (GV*)sstr; - SV *sv = &PL_sv_no; /* just need SvREADONLY-ness */ + SV *sv = ¶m->proto_perl->Isv_no; /* just need SvREADONLY-ness */ if (GvIO(gv) || GvFORM(gv)) { GvUNIQUE_off(gv); /* GvIOs cannot be shared. nor can GvFORMs */ @@ -9053,7 +9053,7 @@ Perl_sv_dup(pTHX_ SV *sstr, CLONE_PARAMS* param) case SVt_PVGV: if (GvUNIQUE((GV*)sstr)) { SV *share; - if ((share = gv_share(sstr))) { + if ((share = gv_share(sstr, param))) { del_SV(dstr); dstr = share; ptr_table_store(PL_ptr_table, sstr, dstr); @@ -9759,6 +9759,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, # endif /* DEBUGGING */ #endif /* PERL_IMPLICIT_SYS */ param->flags = flags; + param->proto_perl = proto_perl; /* arena roots */ PL_xiv_arenaroot = NULL; |