Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set in
authorNicholas Clark <nick@ccl4.org>
Thu, 3 Jan 2008 17:15:53 +0000 (17:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Thu, 3 Jan 2008 17:15:53 +0000 (17:15 +0000)
commit59cd0e26eb6c10499b25d783562357dd68cc16f2
tree68198e7261586c25728270515fa4f9f3acd7735c
parentd16d613cbabd929abf5d13edb895c38c5a99bc29
Extend newSVpvn_flags() to also call sv_2mortal() if SVs_TEMP is set in
the flags. Move its implementation just ahead of sv_2mortal()'s for
CPU cache locality. Refactor all code that can be to use this.

p4raw-id: //depot/perl@32818
16 files changed:
doio.c
doop.c
gv.c
hv.c
mg.c
mro.c
pod/perlapi.pod
pp.c
pp_hot.c
pp_pack.c
pp_sys.c
regcomp.c
sv.c
toke.c
utf8.c
util.c