diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-12 22:34:39 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-12 22:34:39 +0000 |
commit | 23b4abe91660ccb54a9308edac575581f85bb433 (patch) | |
tree | 5fc43a31a24c2e403fe87f1496e4ae88feffb443 /sv.c | |
parent | 658b4a4a328256e2a80066c57ca7866646757dad (diff) | |
download | perl-23b4abe91660ccb54a9308edac575581f85bb433.tar.gz |
duping shared hask key scalars can use hek_dup
p4raw-id: //depot/perl@24813
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10747,9 +10747,9 @@ Perl_rvpv_dup(pTHX_ SV *dstr, SV *sstr, CLONE_PARAMS* param) and they should not have these flags turned off */ - /* FIXME - would benefit from share_hek_hek */ - SvPV_set(dstr, sharepvn(SvPVX_const(sstr), SvCUR(sstr), - SvUVX(sstr))); + SvPV_set(dstr, + HEK_KEY(hek_dup(SvSHARED_HEK_FROM_PV(SvPVX_const(sstr)), + param))); } else { SvPV_set(dstr, SAVEPVN(SvPVX_const(sstr), SvCUR(sstr))); |