Correctly handle SvOOK scalars. 5.12 and later don't use SvIVX().
[p5sagit/Devel-Size.git] / CHANGES
CommitLineData
e98cedbf 1Revision history for Perl extension Devel::Size.
2
b6558d1d 30.72_52 2011-05-09 nicholas
4 * Use a table for SV body sizes. These incorporate the space saving post 5.8.x
95dc1714 5 * Correctly handle SvOOK scalars. 5.12 and later don't use SvIVX().
b6558d1d 6
ec404c23 70.75_51 2011-05-05 nicholas
8 * Only use a static array of vtables on gcc.
9
d9b022a1 100.75_50 2011-05-04 nicholas
b7130948 11 * The core's magic vtables are global constants, so aren't part of the size.
d1888d0b 12 * Follow mg_obj and mg_ptr.
d9b022a1 13
ce5fa0d6 140.75 2011-05-04 nicholas
15 [no changes]
16
f404ed48 170.74_53 2011-05-01 nicholas
18 * Fix typo error in bit-vector tracking mechanism. On 64 bit platforms which
19 allocate on 8 byte alignment (rather than 16), a low pointer bit could get
20 lost, resulting in new pointers being considered already "seen".
21 "Found" by BinGOs' smoker, fixed on spectre.mongueurs.net. Thanks.
22
574d9fd9 230.74_52 2011-04-23 nicholas
24 * Fix potential SEGVs for OP_AELEMFAST on a lexical (eg $foo[3])
219b7d34 25 * Fix likely SEGVs for PVOPs (missing break)
4a3d023d 26 * Fix potential SEGVs for PVBMs on 5.10 and later
13683e3a 27 * Move hash and array traversal from total_size() to sv_size()
28 - this allows total_size() and size() to be XS ALIASes.
574d9fd9 29
6ec51ae0 300.74_51 2011-04-22 nicholas
a52ceccd 31 * Don't count PL_sv_{undef,no,yes} in the size returned
81f1c018 32 * total_size() was double-counting entries in typeglobs
33 * sv_size() was double-counting the PVGV size if GvEGV() looped back
6ec51ae0 34 * fix classic off-by-one error - the answer is strlen() + 1, not just strlen()
a52ceccd 35
db519f11 360.74_50 2011-04-19 nicholas
37 * Ensure that size() doesn't add the referent's size for non SVt_RV references
38
efc072e6 390.74 2011-04-19 nicholas
1507f6e0 40 * Correct the Makefile.PL - LICENSE was added to ExtUtils::MakeMaker in 6.31
41
eee00145 420.73_51 2011-04-17 nicholas
43 * Refactor the C code to accumulate the size inside the tracking structure
44 - this means that the C *_size() functions now return void
45 - The XS functions size() and total_size() now return UV, not IV
46
5f04c81d 470.73_50 2011-04-17 nicholas
48 * Avoid using assert() on ithreaded 5.8.8 and earlier, as it needs my_perl
5daca940 49 * Fix the test added in 0.73, as it tripped over a combination of bugs
5f04c81d 50
1f9c451d 510.73 2011-04-16 nicholas
52 * Revert a bad assertion introduced in 0.72_50, which was logically wrong.
53 - and a test to demonstrate one case that would trigger it
54
550.72_52 2011-04-15 nicholas
fb53b4e7 56 * Add a test for the non-exceptional warnings.
57
1f9c451d 580.72_51 2011-04-15 nicholas
265a0548 59 * Add PERL_NO_GET_CONTEXT to improve performance under multiplicity
60
795fc84c 610.72_50 2011-04-14 nicholas
1a36ac09 62 * Exception handling is totally MSVC specific, so only use it there
63 - this means that we don't need to use a C++ compiler anywhere
30fe4f47 64 * Rework bit-vector tracking mechanism to use a 256-way tree. This avoids
65 making assumptions about 64-bit platforms' memory layouts, and eliminates
66 the fatal error introduced in 0.72 when the assumption was violated.
568039a0 67 * Convert to XSLoader
795fc84c 68 * Resolve CPAN #49437 (Devel::Size adds magic in Perl 5.10)
66f50dda 69 * Resolve CPAN #58484 and #58485 (related to CVs that are XSUBs)
795fc84c 70
7e4f879b 710.72 2008-10-14 BrowserUk 70 tests
9fc9ab86 72 * Added bit-vector pointer tracking mechanism.
73 - new fatal error (64-bit platforms only)
74 * Added exception handling
75 - 4 new warnings (disabled by default)
76 * Updated POD to reflect above
77 * Added basic.t test 13
78 * replaced Module::Install with hand crafted EU::MM Makefile.pl
79 (With many thanks to Sisyphus)
80 because we couldn't work out how to add C++ options to allow
81 exception handling.
82
b7621729 830.71 2008-08-24 Tels 69 tests
84 * adapt patch from Reini Urban to fix failing RV under 5.10 and 5.11. AV
85 and HV were pushed directly onto the pending_array, and not the RV,
86 which caused #33530. So he rewrote the logic to deref the RV inside
87 the array traversal. Applied this with one small omission, which
88 caused test faiures.
89 * Fixed 5.11 RV/IV logic. (Thanx Reini Urban!)
90 * Removed one duplicate total_size arrayref test. (Thanx Reini Urban!)
91 * changed //printf to dbg_printf() (Thanx Reini again!)
92
f44772ad 930.70 2008-08-23 Tels 69 tests
94 * fix SEGFAULTS under v5.10 (Thanx Reini Urban!)
6ea94d90 95 * fix compilation under blead (Thanx Reini Urban!)
96 * require Perl 5.006 (to stop CPANTESTERS sending bogus reports
97 about failed compiling on ancient Perls)
f44772ad 98 * update the bundles Module::Install to v0.77
6ea94d90 99
5a83b7cf 1000.69 2007-08-11 Tels 69 tests
101 * fix compilation under Perl v5.9.5 and v5.10 (Thanx Steve Peters!)
102 * clarify the license by specifying Perl v5.8.8's license
b7621729 103 * small doc fixes, add a README file
5a83b7cf 104
c8db37d3 1050.68 2007-06-12 Tels 69 tests
106 * remove a bit of duplicate code in op_size, the second instance
107 was a no-op anyway
108 * fix the failing tests by rewriting the test logic to be sane
109 * the count of array slots was off by one
110
b1e5ad85 1110.67 2007-03-15 Tels 20 tests
112 * rip out Build.PL since it doesn't actually work
113 * fix bug #1653: All SVPV subtype may contain an RV instead of a PV
114 (Thanx a lot Jan, and sorry for the truly horrible long delay!)
115 * fix bug #24846: Does not correctly recurse into references in PVNV
116 (Thanx STEVIEO)
117 * add t/recurse.t that tests the two bugfixes in combination
118
1190.66 2007-03-02 Tels 15 tests
120 * fix the failing test (the code was right, but the test wrong)
121
0430b7f7 1220.65 2007-02-24 Tels 15 tests
123 * fix the test failings under 64 bit (bugs #21037, #18596, #21404)
124 * fix wrong size for strings (bug #17586)
125 * reverse Changelog (bug #16636)
126 * Size.xs: remove unused variable "count"
127 * Size.xs: fix warnings about missing ()
128 * Size.xs: fix size of array refs when AvALLOC == 0
129 * Modernize package:
130 + maintained by me, signed with my key
131 + bundle Module::Install and use it
132 + add POD tests
133 + rewrite tests to use Test::More; add more tests
e98cedbf 134
0430b7f7 1350.64 Mon Dec 19 18:46:00 2005
136 - Patch to make Devel::Size compile on bleadperl (Courtesy of
9fc9ab86 137 Nick Clark)
138 - Fix up the PVIV string size calcs (Courtesy of Andrew Shirrayev)
fea63ffa 139
0430b7f7 1400.63 Thu Jun 30 14:29:43 2005
141 - Turns out that OP_TRANS is a basic op, not a loop op. This
9fc9ab86 142 is a bug in versions of perl 5.8.x before 5.8.7. Work around
143 it.
b98fcdb9 144
0430b7f7 1450.62 Tue Jun 28 11:59:00 2005
146 - Took out // comments
9fc9ab86 147 - Added in copyright notice
148 - Some small amount of regex parsing
149 - Suppress multiple copies of each warning on each call
966a1570 150
0430b7f7 1510.61 Mon Jun 27 16:19:00 2005
152 - Added more checks for formats
9fc9ab86 153 - Got CVs sizing right
78dfb4e7 154
0430b7f7 1550.59 Sat Nov 27 16:42:42 2004
156 - Applied documentation and sane warning patch from Nigel Sandever
157 - Taught Devel::Size how to size up IO and globs properly
78dfb4e7 158
1590.58 Fri Jul 18 11:42:32 2003
160 - Fix for problems triggered by perl 5.8.0 and up, more tests, and
9fc9ab86 161 removal of an "our" for better backwards compatibility. (Courtesy
162 of Marcus Holland-Moritz <mhx-perl@gmx.net>)
5073b933 163
0430b7f7 1640.57 Thu Mar 20 13:21:14 2003
165 - setting $Devel::Size::warn to 0 disables not complete warnings
a3ec2202 166
0430b7f7 1670.56 Mon Feb 24 12:10:13 2003
168 - Chopped out some C++ comments. D'oh! Version incremented for CPAN
98ecbbc6 169
0430b7f7 1700.55 Sat Feb 22 17:21:00 2003
171 - Fixed a bad size calculation (we were overestimating by one byte)
9fc9ab86 172 - Updated the docs to show some of the places that there might be 'dark'
173 memory that Devel::Size can't see.
174 - Added in tests from Ken Williams
62691e7c 175
0430b7f7 1760.54 Sat Oct 12 14:11:00 2002
9fc9ab86 177 - Applied a patch to get it working on 5.8.0 under Tru64
0430b7f7 178
1790.53 Thu Oct 10 12:30:00 2002
180 - Finally started updating Changes file
9fc9ab86 181 - Applied doc patch from Ann Barcomb
182 - Got globs sizing right
0430b7f7 183
1840.01 Mon Oct 7 01:05:32 2002
9fc9ab86 185 - original version; created by h2xs 1.2 with options
186 -A -n Devel::Size
24d37977 187