test the resetting of refcnt for immortals
authorDavid Mitchell <davem@iabyn.com>
Tue, 18 Dec 2012 23:41:29 +0000 (23:41 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 18 Dec 2012 23:45:17 +0000 (23:45 +0000)
commitfe54beba3a096a44113f13da9f1b10564e27a60a
treeb33b698fcee70bd5cb053d1fb8a901055b9993ea
parent2e1be9f519db0c7cc2b3447c6fe9d7bd9abe5c03
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.
perl.c
sv.c
sv.h