File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,26 @@ well.
398
398
Removed the deprecated (since 5.32) functions C<sv_locking()> and
399
399
C<sv_unlocking>.
400
400
401
+ =item *
402
+
403
+ C<Perl_expected_size> has been added as an experimental stub macro. The
404
+ intention is to build on this such that it can be passed a size in bytes,
405
+ then returns the interpreter's best informed guess of what actual usable
406
+ allocation size would be returned by the malloc implementation in use.
407
+
408
+ This would help with sizing allocations such that SvLEN is more accurate
409
+ and not trying to shrink string buffers to save size when the intended
410
+ saving is unrealistic.
411
+
412
+ =item *
413
+
414
+ C<SvPV_shrink_to_cur> has been revised to include a byte for COW, so that
415
+ the resulting string could be COWed in the future.
416
+
417
+ It also now uses C<Perl_expected_size>, compared against the current
418
+ buffer size, and does not try to do a reallocation if the requested
419
+ memory saving is unrealistic.
420
+
401
421
=back
402
422
403
423
=head1 Selected Bug Fixes
You can’t perform that action at this time.
0 commit comments