diff options
author | David Mitchell <davem@iabyn.com> | 2012-12-18 23:41:29 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-18 23:45:17 +0000 |
commit | fe54beba3a096a44113f13da9f1b10564e27a60a (patch) | |
tree | b33b698fcee70bd5cb053d1fb8a901055b9993ea /perl.c | |
parent | 2e1be9f519db0c7cc2b3447c6fe9d7bd9abe5c03 (diff) | |
download | perl-fe54beba3a096a44113f13da9f1b10564e27a60a.tar.gz |
test the resetting of refcnt for immortals
PL_sv_undef etc get given a very high ref count, which if it ever reaches
zero, is set back to a high value. On debugging builds, use a lower value
(1000) so that the resetting code gets exercised occasionally.
Also, replace literal (~(U32)0)/2 with the constant SvREFCNT_IMMORTAL.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ perl_construct(pTHXx) init_constants(); SvREADONLY_on(&PL_sv_placeholder); - SvREFCNT(&PL_sv_placeholder) = (~(U32)0)/2; + SvREFCNT(&PL_sv_placeholder) = SvREFCNT_IMMORTAL; PL_sighandlerp = (Sighandler_t) Perl_sighandler; #ifdef PERL_USES_PL_PIDSTATUS |