diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-11 12:14:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-11 12:14:04 +0000 |
commit | 14a49a2428492a7a120f0254ff8085e99252f641 (patch) | |
tree | 32e1575fa0e68d4c2eb45dc0c44f5e6e312c862a /regexec.c | |
parent | ccb2c8b8ab146edc148e377cd6b108da77d1320b (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |