the fatal error introduced in 0.72 when the assumption was violated.
* Convert to XSLoader
* Resolve CPAN #49437 (Devel::Size adds magic in Perl 5.10)
- * Resolve CPAN #58484
+ * Resolve CPAN #58484 and #58485 (related to CVs that are XSUBs)
0.72 2008-10-14 BrowserUk 70 tests
* Added bit-vector pointer tracking mechanism.
if (check_new(tv, CvOUTSIDE(thing))) {
total_size += thing_size((SV *)CvOUTSIDE(thing), tv);
}
- if (!CvISXSUB(thing)) {
+ if (CvISXSUB(thing)) {
+ SV *sv = cv_const_sv((CV *)thing);
+ if (sv) {
+ total_size += thing_size(sv, tv);
+ }
+ } else {
if (check_new(tv, CvSTART(thing))) {
total_size += op_size(CvSTART(thing), tv);
}
# CPAN RT #58484 and #58485
isnt (total_size(\&total_size), 0, 'total_size(\&total_size) > 0');
-use constant LARGE => 'N' x 4096;
+use constant LARGE => 'N' x 8192;
-isnt (total_size(\&LARGE), 0, 'total_size for a constant > 0');
+cmp_ok (total_size(\&LARGE), '>', 8192,
+ 'total_size for a constant includes the constant');