diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-11 17:00:59 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-11 17:00:59 +0000 |
commit | 402d2eb1990caf116b392579a55f0a4f317d2738 (patch) | |
tree | 724a49a2c107179dda8887755c54a52a720e9144 /perl.c | |
parent | 2f3529075cdaceeaf619b8bd308885878ec9828a (diff) | |
download | perl-402d2eb1990caf116b392579a55f0a4f317d2738.tar.gz |
Pack the recycled pad offsets into an SV at PL_regex_pad[0]. This will
use less memory than an AV.
p4raw-id: //depot/perl@32959
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -353,8 +353,9 @@ perl_construct(pTHXx) sv_setpvn(PERL_DEBUG_PAD(1), "", 0); /* ext/re needs these */ sv_setpvn(PERL_DEBUG_PAD(2), "", 0); /* even without DEBUGGING. */ #ifdef USE_ITHREADS - /* First entry is an array of empty elements */ - Perl_av_create_and_push(aTHX_ &PL_regex_padav,(SV*)newAV()); + /* First entry is a list of empty elements. It needs to be initialised + else all hell breaks loose in S_find_uninit_var(). */ + Perl_av_create_and_push(aTHX_ &PL_regex_padav, newSVpvs("")); PL_regex_pad = AvARRAY(PL_regex_padav); #endif #ifdef USE_REENTRANT_API |