From: Nicholas Clark Date: Mon, 9 May 2011 07:18:18 +0000 (+0200) Subject: Don't count PL_sv_placeholder in the size returned. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6389ea67a53482389e1314eea7dfa79bd804082e;p=p5sagit%2FDevel-Size.git Don't count PL_sv_placeholder in the size returned. PL_sv_placeholder is a singleton, process wide, so shouldn't count as part of the size. --- diff --git a/Size.xs b/Size.xs index b18e046..7cd3ea7 100644 --- a/Size.xs +++ b/Size.xs @@ -831,6 +831,9 @@ new_state(pTHX) check_new(st, &PL_sv_undef); check_new(st, &PL_sv_no); check_new(st, &PL_sv_yes); +#if PERL_VERSION > 8 || (PERL_VERSION == 8 && PERL_SUBVERSION > 0) + check_new(st, &PL_sv_placeholder); +#endif return st; }