summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-11 12:14:04 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-11 12:14:04 +0000
commit14a49a2428492a7a120f0254ff8085e99252f641 (patch)
tree32e1575fa0e68d4c2eb45dc0c44f5e6e312c862a /regexec.c
parentccb2c8b8ab146edc148e377cd6b108da77d1320b (diff)
downloadperl-14a49a2428492a7a120f0254ff8085e99252f641.tar.gz
REGEXPs are now stored directly in PL_regex_padav, rather than
indirectly via RVs. This saves memory, and removes 1 level of pointer indirection. p4raw-id: //depot/perl@32950
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 3a7d461d28..e64846fdd0 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2255,7 +2255,7 @@ S_regtry(pTHX_ regmatch_info *reginfo, char **startpos)
Newxz(PL_reg_curpm, 1, PMOP);
#ifdef USE_ITHREADS
{
- SV* const repointer = newSViv(0);
+ SV* const repointer = &PL_sv_undef;
/* this regexp is also owned by the new PL_reg_curpm, which
will try to free it. */
av_push(PL_regex_padav, repointer);