In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/e7245888eddac196db172b05d1c37f48debd2a10?hp=5f425cbef56bf693b214e78fe4ac4fbc3cba54d9>
- Log ----------------------------------------------------------------- commit e7245888eddac196db172b05d1c37f48debd2a10 Author: David Mitchell <[email protected]> Date: Sun Jun 9 10:50:15 2013 +0100 remove -Dmad string length restriction Under -Dmad, with PERL_MADSKILLS > 0, it prints a warning for every string that is grown to be >= 1Mb. I can't see that it makes any sense to do this, so I suspect that this is residual code from MAD development, or an accidental copying of the almost identical #ifdef HAS_64K_LIMIT piece of code directly following it. ----------------------------------------------------------------------- Summary of changes: sv.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/sv.c b/sv.c index 962e392..8222aae 100644 --- a/sv.c +++ b/sv.c @@ -1474,10 +1474,6 @@ Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen) PERL_ARGS_ASSERT_SV_GROW; - if (PL_madskills && newlen >= 0x100000) { - PerlIO_printf(Perl_debug_log, - "Allocation too large: %"UVxf"\n", (UV)newlen); - } #ifdef HAS_64K_LIMIT if (newlen >= 0x10000) { PerlIO_printf(Perl_debug_log, -- Perl5 Master Repository
