Don't count PL_sv_placeholder in the size returned.
Nicholas Clark [Mon, 9 May 2011 07:18:18 +0000 (09:18 +0200)]
PL_sv_placeholder is a singleton, process wide, so shouldn't count as part of
the size.

Size.xs

diff --git a/Size.xs b/Size.xs
index b18e046..7cd3ea7 100644 (file)
--- 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;
 }